ruff: Flake8, Black, and isort in one. 1000x faster Python static analysis

astral-sh/ruff

·2026.11.06 21:48

A Python linter and formatter written in Rust. It checks and formats code 10 to 100 times, and up to 1000 times, faster than existing tools. It can scan the entire CPython codebase in seconds.

It integrates the functionality of multiple tools, such as Flake8, Black, isort, pydocstyle, and pyupgrade, into a single interface. It supports over 900 built-in rules and natively reimplements the features of popular plugins like flake8-bugbear. It also provides automatic error fixing, such as removing unused imports.

Configuration is managed through pyproject.toml, with support for hierarchical configurations suitable for monorepo environments. A caching feature that does not reanalyze unchanged files maintains speed even during repeated runs. It integrates naturally into development workflows through editor integrations like VS Code and GitHub Actions.

It is used in major open-source projects such as Apache Airflow, FastAPI, Hugging Face, and Pandas. It is suitable for maintaining consistent code quality by running as a commit hook in local development environments or including it in CI pipelines. It supports compatibility up to Python 3.15.

GitHub
GitHub repository

astral-sh/ruff

An extremely fast Python linter and code formatter, written in Rust.

Rust

This introduction was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report errors, attribution issues, or removal requests via Contact.