psf / black
git clone https://github.com/psf/black.git
26.10.1 · 1mo ago
Opinionated Python code formatter that rewrites files in place to a single, deterministic PEP 8-compliant style.
Why you might care
Black removes formatting debate by producing one consistent style, so code looks the same across projects and diffs stay small. Limited configuration options and a stable style make it a low-maintenance choice for Python teams; it requires Python 3.11+ and is installable via pip or standalone executables.
+3
stars, 24h · #9,960
+21
stars, 7 days · #12,940
+154
stars, 30 days · #9,107
42k
★ total · +0% this week
3.2k
forks · 254 open issues
Star history (as recorded here)
LanguagePython
LicenseMIT
Created2018-03-14 (8y ago)
Last pushtoday
Watchers222
OwnerOrganization
Seen on GitHub Trending
- 2026-11-07 — #17 daily in python · +13 ★
GitHub topics
Links
- GitHub: github.com/psf/black
- Homepage: https://black.readthedocs.io/en/stable/
- Releases · Issues · Hacker News mentions
README
Loading README…
Blurb generated by claude-haiku-5-5 29d ago. Star deltas marked ~ are extrapolated from partial history.