Key Features
- 800+ rules from Flake8, pycodestyle, pydocstyle, isort, and more
- Auto-fix for 400+ rule violations
- Formatter — Black-compatible, drop-in replacement
- Import sorting — isort-compatible
- 10-100x faster than existing tools (Rust-powered)
- Zero config — works out of the box, customizable via
pyproject.toml
Configuration
# pyproject.toml
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP"]