[tool.ruff] line-length = 120 target-version = "py310" [tool.ruff.lint] select = ["E", "F", "I", "B", "C4", "SIM"] # Ignore some linting errors that are common in FastAPI applications ignore = ["B008", "E712", "B904"] # Exclude a variety of commonly ignored directories. exclude = [ ".git", ".ruff_cache", ".venv", "venv", "__pycache__", "migrations", ] [tool.ruff.lint.isort] known-third-party = ["fastapi", "pydantic", "sqlalchemy", "starlette", "jose", "passlib"] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "E402"]