Skip to content
CAI
Produce a survey ↗Verify a survey

psf/black

Black is a Python code formatter that parses, transforms, and outputs standardized Python source code. The system supports modern Python syntax, Jupyter notebooks, and HTTP-based formatting via blackd. It includes a comprehensive test suite and automation scripts for release and quality assurance.

68.4

Adequate · 2 August 2026

101k

lines of production code

Python

primary language

7

bus factor · 552 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2018 · Build system modernization and tooling

This period focused on modernizing the project's build infrastructure by migrating to pyproject.toml and removing legacy parser components. It also expanded tooling support through a new Vim plugin and enhanced testing coverage for Jupyter notebook formatting.

7 changes

2020–2021 · Modernization and infrastructure

This period focused on modernizing Black's internal architecture by reorganizing the codebase into a proper Python package structure and updating the parser to support modern Python syntax features. The team also expanded the project's ecosystem by introducing the blackd HTTP server, enhancing the Vim plugin, and adding release automation and testing scripts.

8 changes

2022–2025 · Test coverage and configuration validation

This period focused on expanding test coverage for Python 2 syntax, string normalization, and various edge cases to ensure robust formatting. Additionally, the project introduced a JSON Schema for configuration validation and added type stubs to improve developer experience and static type checking.

4 changes

CAI lens gauges

Survey your own repository

psf/black was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 5706d79984 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards