Ruff

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

Stars
51.1k
Forks
2.6k
Licence
MIT
Language
Rust
Version
0.17.4
Updated

At a glance

  • Hundreds of lint rules re-implemented from popular plugins
  • A Black-compatible formatter
  • Automatic fixes for many rules

Get started

Installpip install ruff

What it is

Ruff checks and formats Python code. It re-implements rules from Flake8, isort, pyupgrade and many plugins in one tool, configured in pyproject.toml.

Why it stands out

It is fast enough to run on every keystroke, even on very large codebases, which changes how often linting actually happens.

Who it is for

Python projects that want one fast tool in place of a stack of linters.