mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
format code
This commit is contained in:
@@ -31,4 +31,48 @@ dependencies = [
|
||||
"granian>=1.7.0",
|
||||
"apscheduler[redis,sqlalchemy]>=4.0.0a5",
|
||||
"pendulum @ git+https://github.com/sdispater/pendulum.git@develop"
|
||||
]
|
||||
]
|
||||
|
||||
[tool.uv]
|
||||
dev-dependencies = [
|
||||
"ruff>=0.9.10",
|
||||
"devtools[pygments]>=0.12.2",
|
||||
"safety",
|
||||
"pyupgrade",
|
||||
"ipython>=8.26.0",
|
||||
"sqlacodegen>=3.0.0rc5",
|
||||
"tryceratops>=2.3.3",
|
||||
"locust>=2.31.3"
|
||||
|
||||
]
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
strict = true
|
||||
exclude = ["venv", ".venv", "alembic"]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py313"
|
||||
exclude = ["alembic"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle errors
|
||||
"W", # pycodestyle warnings
|
||||
"F", # pyflakes
|
||||
"I", # isort
|
||||
"B", # flake8-bugbear
|
||||
"C4", # flake8-comprehensions
|
||||
"UP", # pyupgrade
|
||||
"ARG001", # unused arguments in functions
|
||||
]
|
||||
ignore = [
|
||||
"E501", # line too long, handled by black
|
||||
"B008", # do not perform function calls in argument defaults
|
||||
"W191", # indentation contains tabs
|
||||
"B904", # Allow raising exceptions without from e, for HTTPException
|
||||
]
|
||||
|
||||
[tool.ruff.lint.pyupgrade]
|
||||
# Preserve types, even if a file imports `from __future__ import annotations`.
|
||||
keep-runtime-typing = true
|
||||
Reference in New Issue
Block a user