compare
Black vs YAPF
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | Black | YAPF |
|---|---|---|
| Language | Python | Python |
| Licence | MIT | Apache-2.0 |
| Stars | 42k | 14k |
| Latest | 26.10.0 | v0.43.0 |
| Last push | 2026-10-05 | 2026-10-02 |
| Release cadence | about 36 days between releases | too few releases |
| Active contributors | 53 commit authors on the default branch in the last 90 days | 0 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
YAPF replaces Black. Alternatives to Black →
Full replacementA configurable style (pep8, google, facebook or your own) instead of a fixed one.
Black
- 26.10.02026-10-04--line-ranges no longer inserts an empty line after a docstring when the range
- 26.5.12026-05-18Fix unstable formatting of annotated assignments whose subscript annotation contains
- 26.5.02026-05-16Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810),
- 26.3.12026-03-12Prevent Jupyter notebook magic masking collisions from corrupting cells by using
- 26.3.02026-03-06Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964)
YAPF
This repository publishes tags, not GitHub releases.
Black
✓ signed The latest release, 26.10.0, carries a signature GitHub verified.
Loading the security report
YAPF
unsigned The latest release, v0.43.0, carries no signature GitHub could verify.
Loading the security report