[tool.ruff] line-length = 88 target-version = "py38" [tool.ruff.lint] # Enable flake8-bugbear (`B`) rules. select = ["E", "F", "B", "I"] # Exclude a variety of commonly ignored directories. exclude = [ ".git", ".ruff_cache", "__pycache__", "venv", "env", ".env", ".venv", ] # 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"] "migrations/env.py" = ["E402"] # We'll ignore B008 for FastAPI dependency injection, which is the recommended pattern "app/api/*.py" = ["B008"]