Skip to content

Commit

Permalink
be: initialize AppSettings with default factory
Browse files Browse the repository at this point in the history
  • Loading branch information
samu9 committed Feb 16, 2025
1 parent 9c9d69a commit 1c2d580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/hermadata/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os

from pydantic import Field
from pydantic_settings import BaseSettings, SettingsConfigDict

from hermadata.constants import StorageType
Expand Down Expand Up @@ -35,7 +36,7 @@ class Settings(BaseSettings):
stage: str
db: DBSettings
storage: StorageSettings
app: AppSettings | None = None
app: AppSettings = Field(default_factory=AppSettings)
model_config = SettingsConfigDict(
env_file=ENV_PATH,
env_file_encoding="utf-8",
Expand Down

0 comments on commit 1c2d580

Please sign in to comment.