Black
Some data may be outdated — see provenance labels.
The uncompromising Python code formatter observed · 2026-10-05
Health v2 · maintenance only
94/100
- Activity 98
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 47
- age_days: 3142
- days_rel: 16
- days_push: 16
- n_releases_24m: 10
Adoption not part of the score
41865 stars · 2908 forks observed · 2026-10-05
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-28, confidence 0.99
Black is an uncompromising Python code formatter that reformats entire files in a deterministic way. It can be run as a command‑line tool, a Python module, or as a server (blackd).
Use cases
- automatically format Python source files to a consistent style
- integrate code formatting into CI pipelines with pre‑commit hooks
- reformat Jupyter notebooks for clean, shareable code cells
- enforce a uniform code style across a large Python codebase
- reduce code review noise by minimizing diffs caused by formatting
When to choose
- you need a zero‑configuration, opinionated formatter for Python
- you want fast, deterministic formatting with minimal diff output
- your project uses Python 3.10+ and you prefer a tool with strong test coverage
- you need a formatter that can be run as a server or integrated into editors
When to avoid
- you require highly configurable or customizable formatting rules
- your codebase includes languages other than Python
- you need a formatter that works on Python versions older than 3.10
Facets
cli-tool · maturity stable
formatter developer-tools programming-languages python cross-platform cli code-formatting autopep8-alternative blackd pre-commit
2 sources
- readme: https://github.com/psf/black · fetched 2026-10-05 · 2b3b8b08762d
- homepage: https://black.readthedocs.io/en/stable/ · fetched 2026-09-14 · 457c416b144c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| psf/black | main | 94 |
| psf/black-pre-commit-mirror | infra | 63 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem