github.com/astral-sh/ruff

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

Open this visualization on its own page →

Contributors

725

Lines of Code

134,932

From

2022-08-09

To

2025-10-20

About astral-sh/ruff

Ruff is an extremely fast Python linter and code formatter written in Rust that aims to consolidate multiple Python development tools into a single, unified interface. The tool performs 10-100 times faster than traditional linters like Flake8 and formatters like Black, while providing drop-in compatibility with those tools as well as others like isort and pyupgrade. It supports over 900 lint rules through native Rust implementations, including re-implementations of popular Flake8 plugins such as flake8-bugbear, flake8-comprehensions, and many others.

Ruff can be installed via pip and includes features like built-in caching, automatic error fixing, pyproject.toml configuration support, and editor integrations for VS Code and other editors. The tool is configured through a simple ruff.toml or pyproject.toml file and can function as a replacement for numerous separate tools including Flake8 and its plugins, Black, isort, pydocstyle, pyupgrade, and autoflake. Its speed makes it practical to use as a git pre-commit hook and in continuous integration workflows.

The project has gained widespread adoption among major open-source organizations and companies, including Apache Airflow, FastAPI, Hugging Face, Pandas, SciPy, PyTorch, and Mozilla. It is backed by Astral, the company behind the uv Python package manager, and the project is extremely actively maintained with regular feature additions and improvements.

Share this video