From fa986427cdba39646a6af0283c95fa36ec07da0e Mon Sep 17 00:00:00 2001 From: Adam <41971533+jcadam14@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:44:59 -0400 Subject: [PATCH] black formatting --- src/regtech_user_fi_management/config.py | 3 ++- src/regtech_user_fi_management/main.py | 2 +- tests/app/test_config.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/regtech_user_fi_management/config.py b/src/regtech_user_fi_management/config.py index 14a0b43..cfe31da 100644 --- a/src/regtech_user_fi_management/config.py +++ b/src/regtech_user_fi_management/config.py @@ -16,6 +16,7 @@ if os.getenv("ENV", "LOCAL") == "LOCAL": env_files_to_load.append(".env.local") + class ServerConfig(BaseModel): host: str = "0.0.0.0" """ @@ -38,7 +39,7 @@ class Settings(BaseSettings): inst_conn: str | None = None admin_scopes: Set[str] = set(["query-groups", "manage-users"]) db_logging: bool = True - + server_config: ServerConfig = ServerConfig() def __init__(self, **data): diff --git a/src/regtech_user_fi_management/main.py b/src/regtech_user_fi_management/main.py index 14f7547..7ede561 100644 --- a/src/regtech_user_fi_management/main.py +++ b/src/regtech_user_fi_management/main.py @@ -81,4 +81,4 @@ async def lifespan(app_: FastAPI): workers=settings.server_config.workers, reload=settings.server_config.reload, log_config=settings.server_config.log_config, - ) \ No newline at end of file + ) diff --git a/tests/app/test_config.py b/tests/app/test_config.py index f8c8c0a..23c777d 100644 --- a/tests/app/test_config.py +++ b/tests/app/test_config.py @@ -19,4 +19,4 @@ def test_default_server_configs(): assert settings.server_config.workers == 4 assert settings.server_config.reload is False assert settings.server_config.time_out == 65 - assert settings.server_config.port == 8888 \ No newline at end of file + assert settings.server_config.port == 8888