"""Application configuration settings.""" from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): """Application settings loaded from environment variables.""" model_config = SettingsConfigDict( env_file=".env", env_file_encoding="utf-8", case_sensitive=False, ) # Application app_name: str = "Project Kempe - Fantasy Hockey Backend" app_version: str = "0.1.0" debug: bool = False # Database database_url: str = "postgresql+asyncpg://user:password@localhost:5432/fantasy_hockey" # Yahoo Fantasy API yahoo_consumer_key: str = "" yahoo_consumer_secret: str = "" # API Configuration api_prefix: str = "/api/v1" cors_origins: list[str] = ["http://localhost:3000"] def get_settings() -> Settings: """Returns the application settings singleton.""" return Settings()