Update deps and lint

This commit is contained in:
2023-05-09 22:53:53 +02:00
parent 0c4d3c2871
commit bc991e8148
10 changed files with 625 additions and 621 deletions

View File

@@ -6,24 +6,24 @@ authors = ["Kurbanov Bulat <kurbanovbul@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.95.0"
fastapi-pagination = {extras = ["ormar"], version = "^0.11.4"}
alembic = "^1.10.2"
fastapi = "^0.95.1"
fastapi-pagination = {extras = ["ormar"], version = "^0.12.3"}
alembic = "^1.10.4"
ormar = {extras = ["postgresql"], version = "^0.12.1"}
uvicorn = {extras = ["standard"], version = "^0.21.1"}
httpx = "^0.23.3"
orjson = "^3.8.8"
uvicorn = {extras = ["standard"], version = "^0.22.0"}
httpx = "^0.24.0"
orjson = "^3.8.12"
prometheus-fastapi-instrumentator = "^6.0.0"
uvloop = "^0.17.0"
gunicorn = "^20.1.0"
sentry-sdk = "^1.17.0"
redis = {extras = ["hiredis"], version = "^4.5.4"}
ormsgpack = "^1.2.5"
sentry-sdk = "^1.22.2"
redis = {extras = ["hiredis"], version = "^4.5.5"}
ormsgpack = "^1.2.6"
[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pre-commit = "^2.21.0"
pre-commit = "^3.3.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
@@ -65,14 +65,13 @@ max-complexity = 15
[tool.ruff.isort]
known-first-party = ["core", "app"]
force-sort-within-sections = true
force-wrap-aliases = true
section-order = ["future", "standard-library", "base_framework", "framework_ext", "third-party", "first-party", "local-folder"]
lines-after-imports = 2
# 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",]
[tool.ruff.isort.sections]
base_framework = ["fastapi",]
framework_ext = ["starlette"]
[tool.ruff.pyupgrade]
keep-runtime-typing = true