31 lines
633 B
TOML
31 lines
633 B
TOML
[tool.ruff]
|
|
line-length = 88
|
|
exclude = [
|
|
"alembic/versions/*.py", # Auto-generated Alembic migration files
|
|
]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"UP", # pyupgrade
|
|
"W", # pycodestyle warnings
|
|
]
|
|
ignore = []
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/**/*.py" = [
|
|
"F811", # redefinition of unused name
|
|
"F401", # unused import
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["app"]
|
|
|
|
[tool.ruff.format]
|
|
docstring-code-format = true
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "--cov=app --cov-report=term-missing --cov-fail-under=70"
|
|
testpaths = ["tests"] |