Home > Software > Development > Python > Ruff - The Fast Python Linter
Details
- Package ID
- ruff
- Version
- 0.16.10
- Downloads
- 27976
- Website
- https://beta.ruff.rs/
Summary
An extremely fast Python linter, written in Rust.
Description
Discord | Docs | Playground
An extremely fast Python linter, written in Rust.
Linting the CPython codebase from scratch.
- β‘οΈ 10-100x faster than existing linters
- π Installable via
pip - π οΈ
pyproject.tomlsupport - π€ Python 3.12 compatibility
- βοΈ Drop-in parity with Flake8, isort, and Black
- π¦ Built-in caching, to avoid re-analyzing unchanged files
- π§ Autofix support, for automatic error correction (e.g., automatically remove unused imports)
- π Over 700 built-in rules, with native re-implementations of popular Flake8 plugins, like flake8-bugbear
- βοΈ Near-parity with the built-in Flake8 rule set
- β¨οΈ First-party editor integrations for VS Code and more
- π Monorepo-friendly, with hierarchical and cascading configuration
Ruff aims to be orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface.
Ruff can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing tens or hundreds of times faster than any individual tool.
Ruff is extremely actively developed and used in major open-source projects like:
β¦and many more.
Read the launch blog post or the most recent project update.
Ruff is backed by Astral. Read the launch post, or the original project announcement.