diff --git a/app/core/config.py b/app/core/config.py index dc21655..fce4c18 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -1,5 +1,6 @@ import os from pathlib import Path +from typing import ClassVar from pydantic_settings import BaseSettings @@ -16,12 +17,13 @@ class Settings(BaseSettings): VERSION: str = "0.1.0" # SQLite Database settings - DB_DIR = Path("/app") / "storage" / "db" + DB_DIR: ClassVar[Path] = Path("/app") / "storage" / "db" SQLALCHEMY_DATABASE_URL: str = f"sqlite:///{DB_DIR}/db.sqlite" - class Config: - case_sensitive = True - env_file = os.path.join(BASE_DIR, ".env") + model_config = { + "case_sensitive": True, + "env_file": os.path.join(BASE_DIR, ".env"), + } settings = Settings()