From 97d62ed19639064784efa08275965cf0468b1bf1 Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Sat, 9 Mar 2024 03:54:57 +0000 Subject: [PATCH] fix: correct lint issues --- app/config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/config.py b/app/config.py index 4c12bc4..a6deb67 100644 --- a/app/config.py +++ b/app/config.py @@ -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")