alternatives to

Black

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.

Side by side

2 open source alternatives to Black
ToolFitStarsLicenceTermsSelf-hostedLanguageLatestLast push
RuffDrop-in51kMITOpen sourceNoRust0.17.42026-11-12
YAPFFull replacement14kApache-2.0Open sourceNoPythonv0.43.02026-11-06

Every alternative

Language
Licence
Fit

2 alternatives

RuffDrop-in

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

The formatter is designed as a drop-in replacement for Black.

Language
Rust
Licence
MIT
Stars
51k
Latest
0.17.4
Last push
2026-11-12

Head to head

About Black

Language
Python
Licence
MIT
Stars
42k
Last push
2026-11-09

About Black →