[tool.ruff] # Enable flake8-bugbear (`B`) rules. target-version = "py310" # Exclude a variety of commonly ignored directories. exclude = [ ".git", ".env", ".venv", "__pycache__", ".pytest_cache", ] # Allow imports relative to the "app" directory to support absolute imports src = ["app"] [tool.ruff.lint] select = ["E", "F", "B"] ignore = ["E501", "B008"] # Ignore line length violations and function calls in defaults [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] [tool.ruff.lint.isort] # Only known first party imports. known-first-party = ["app"]