format code

This commit is contained in:
grillazz
2025-03-08 17:48:04 +01:00
parent 0260df4d09
commit 2cc654e6c7
3 changed files with 841 additions and 4 deletions

View File

@@ -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