Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
fix: no expose config outside
Browse files Browse the repository at this point in the history
Also refactor generate_schemas, simplify it
  • Loading branch information
KevinNitroG committed Jan 9, 2025
1 parent 6e39112 commit 458fea7
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 20 deletions.
5 changes: 1 addition & 4 deletions src/check_phat_nguoi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from check_phat_nguoi.get_data import GetData
from check_phat_nguoi.notify import SendNotifications

from .config import Config

__all__ = ["Config", "GetData", "SendNotifications"]
__all__ = ["Config"]
3 changes: 2 additions & 1 deletion src/check_phat_nguoi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

from truststore import inject_into_ssl

from check_phat_nguoi import GetData, SendNotifications
from check_phat_nguoi.config.config_reader import config
from check_phat_nguoi.get_data import GetData
from check_phat_nguoi.notify import SendNotifications

from .utils.setup_logger import setup_logger

Expand Down
8 changes: 0 additions & 8 deletions src/generate_schemas/__init__.py

This file was deleted.

4 changes: 1 addition & 3 deletions src/generate_schemas/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from generate_schemas.modules import generate_config_schema
from generate_schemas.config import generate_config_schema


def main() -> None:
generate_config_schema()


__all__ = ["generate_config_schema"]

if __name__ == "__main__":
main()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from pydantic import TypeAdapter

from check_phat_nguoi import Config
from generate_schemas.utils.constants import CONFIG_SCHEMA_PATH

from .constants import CONFIG_SCHEMA_PATH


def generate_config_schema():
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions src/generate_schemas/modules/__init__.py

This file was deleted.

0 comments on commit 458fea7

Please sign in to comment.