[CHORE] updating dependencies, mainly fastapi (#302)

* [CHORE] updating dependencies, mainly fastapi

i updated all lib that i could. :) test seem to pass

downgrade uvicorn for mypy to pass

chore

fixup

formatting

* make flake8 didnt flake tests
This commit is contained in:
dni ⚡
2023-08-24 11:09:07 +02:00
committed by GitHub
parent 4f5d3c66fe
commit e374d32df7
5 changed files with 360 additions and 352 deletions

View File

@@ -36,19 +36,19 @@ def create_app(config_object="core.settings") -> FastAPI:
class Formatter:
def __init__(self):
self.padding = 0
self.minimal_fmt: str = (
self.minimal_fmt = (
"<green>{time:YYYY-MM-DD HH:mm:ss.SS}</green> |"
" <level>{level}</level> | <level>{message}</level>\n"
)
if settings.debug:
self.fmt: str = (
self.fmt = (
"<green>{time:YYYY-MM-DD HH:mm:ss.SS}</green> | <level>{level:"
" <4}</level> |"
" <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan>"
" | <level>{message}</level>\n"
)
else:
self.fmt: str = self.minimal_fmt
self.fmt = self.minimal_fmt
def format(self, record):
function = "{function}".format(**record)