[tool.ruff] target-version = "py38" line-length = 120 [tool.ruff.lint] select = ["E", "F", "B", "I"] ignore = ["B008", "E501", "B904", "E402"] # Exclude a variety of commonly ignored directories. exclude = [ ".git", ".ruff_cache", "__pycache__", "venv", ".env", ".venv", "env", "dist", ] # 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] force-single-line = false known-first-party = ["app"] force-sort-within-sections = true