Skip to content

Commit

Permalink
Re-ran black. Removed whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdiez-at committed Aug 30, 2024
1 parent 4632aa8 commit 2324fb6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tipg/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2324fb6

Please sign in to comment.