Use uvicorn

This commit is contained in:
2023-05-14 16:31:03 +02:00
parent 92c2cf7077
commit 7948ba71f6
6 changed files with 40 additions and 76 deletions

View File

@@ -6,14 +6,13 @@ authors = ["Kurbanov Bulat <kurbanovbul@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.95.0"
fastapi = "^0.95.1"
python-multipart = "^0.0.6"
aiofiles = "^23.1.0"
uvicorn = {extras = ["standard"], version = "^0.21.1"}
httpx = "^0.23.3"
uvicorn = {extras = ["standard"], version = "^0.22.0"}
httpx = "^0.24.0"
uvloop = "^0.17.0"
gunicorn = "^20.1.0"
sentry-sdk = "^1.17.0"
sentry-sdk = "^1.22.2"
fastapi-utils = "^0.2.1"
pydantic = "^1.10.7"
@@ -59,14 +58,15 @@ extend-immutable-calls = ["fastapi.File", "fastapi.Form"]
max-complexity = 15
[tool.ruff.isort]
known-first-party = ["core", "app"]
force-sort-within-sections = true
# only_sections = true
# force_sort_within_sections = true
# lines_after_imports = 2
# lexicographical = true
# sections = ["FUTURE", "STDLIB", "BASEFRAMEWORK", "FRAMEWORKEXT", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
# known_baseframework = ["fastapi",]
# known_frameworkext = ["starlette",]
force-wrap-aliases = true
section-order = ["future", "standard-library", "base_framework", "framework_ext", "third-party", "first-party", "local-folder"]
lines-after-imports = 2
[tool.ruff.isort.sections]
base_framework = ["fastapi",]
framework_ext = ["starlette"]
[tool.ruff.pyupgrade]
keep-runtime-typing = true