Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed Jul 29, 2024
1 parent 11515e1 commit fa98642
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/regtech_user_fi_management/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"""
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/regtech_user_fi_management/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
)
2 changes: 1 addition & 1 deletion tests/app/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
assert settings.server_config.port == 8888

0 comments on commit fa98642

Please sign in to comment.