diff --git a/tipg/settings.py b/tipg/settings.py index d14933a..98bc99a 100644 --- a/tipg/settings.py +++ b/tipg/settings.py @@ -63,7 +63,7 @@ class TableSettings(BaseSettings): fallback_key_names: List[str] = ["ogc_fid", "id", "pkey", "gid"] table_config: Dict[str, TableConfig] = {} sort_columns: bool = True - + model_config = { "env_prefix": "TIPG_", "env_file": ".env", @@ -143,9 +143,7 @@ class PostgresSettings(BaseSettings): # https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/backend/app/app/core/config.py#L42 @field_validator("database_url", mode="before") - def assemble_db_connection( - cls, v: Optional[str], info: ValidationInfo - ) -> PostgresDsn: + def assemble_db_connection(cls, v: Optional[str], info: ValidationInfo) -> PostgresDsn: """Validate db url settings.""" if isinstance(v, str): return PostgresDsn(v)