Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
fix: correct lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Mar 9, 2024
1 parent bf7d2ea commit 97d62ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/config.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
"""
Application configuration from file and environment variables.
"""

import pydantic
import pydantic_settings


class HTTP(pydantic.BaseModel):
"""
HTTP module configuration besides configuration that are passed
directly to uvicorn.
"""

debug: bool


class Settings(pydantic_settings.BaseSettings):
"""
Configuration holder
"""

http: HTTP = HTTP(debug=True)
model_config = pydantic_settings.SettingsConfigDict(toml_file="config.toml")

Expand Down

0 comments on commit 97d62ed

Please sign in to comment.