An extremely fast Python linter and code formatter, written in Rust.
The formatter is designed as a drop-in replacement for Black.
alternatives to
The uncompromising Python code formatter
Ruff and YAPF. 2 alternatives to Black, in Rust, Python. Compare fit, licence, stars and the latest signed release. Drop-in: Ruff.
| Tool | Fit | Stars | Licence | Terms | Self-hosted | Language | Latest | Last push |
|---|---|---|---|---|---|---|---|---|
| Ruff | Drop-in | 51k | MIT | Open source | No | Rust | 0.17.4 | 2026-11-12 |
| YAPF | Full replacement | 14k | Apache-2.0 | Open source | No | Python | v0.43.0 | 2026-11-06 |
2 alternatives
An extremely fast Python linter and code formatter, written in Rust.
The formatter is designed as a drop-in replacement for Black.
A formatter for Python files
A configurable style (pep8, google, facebook or your own) instead of a fixed one.