simpletodoapp-y4xv4a/pyproject.toml
2025-05-17 02:28:21 +00:00

31 lines
731 B
TOML

[tool.ruff]
# Enable linting rules
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "B", "I"]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
"__pypackages__",
"migrations",
"dist",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Ignore some errors for endpoint dependency injection
ignore = ["B008"] # Allow Depends() function call in parameters
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.isort]
known-third-party = ["fastapi", "pydantic", "sqlalchemy", "alembic"]