32 lines
756 B
TOML
32 lines
756 B
TOML
[tool.ruff]
|
|
# Exclude a variety of commonly ignored directories.
|
|
exclude = [
|
|
".git",
|
|
".ruff_cache",
|
|
".venv",
|
|
"venv",
|
|
"__pypackages__",
|
|
"migrations",
|
|
]
|
|
|
|
# Assume Python 3.10
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
# Enable flake8-bugbear (B) rules.
|
|
select = ["E", "F", "B", "I"]
|
|
|
|
# Ignore line length violations and B008 (function calls in defaults)
|
|
ignore = ["E501", "B008"]
|
|
|
|
# Allow autofix for all enabled rules (when `--fix`) is provided.
|
|
fixable = ["ALL"]
|
|
|
|
# Allow unused variables when underscore-prefixed.
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"__init__.py" = ["F401"] # Ignore unused imports in __init__.py files
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["app"] |