Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Black

Uncompromising Python code formatter enforcing consistent style automatically.

Linting and formattingPYPI

GitHub

1. License

License from PyPI license expression.

github.com/psf/black

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Black does

Uncompromising Python code formatter enforcing consistent style automatically.

Black popularity

76 / 100
Gid Score, #171 overall
25.7M
downloads a week, pypi
42.2K
GitHub stars
78
agent projects use it
Black: downloads per weekPyPI, black 25,452,513
Black: GitHub starspsf/black 42,210

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Black is used

  • Black is a dependency in 78 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.8% of the 1,623 Python ones), #10 of 83 in linting and formatting.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 476; those are left out of every share on this page.
  • The most used alternative in our scan is Ruff (54 projects).
  • Projects that use it most often also use pytest (89.7%), python-dotenv (66.7%), Requests (56.4%).
  • It is more common in projects set up for Roo Code (6.3%) than for Cursor (0.9%).

By coding agent

40 projects, 1.3%
37 projects, 1.1%
23 projects, 0.9%
7 projects, 2.5%
7 projects, 6.3%
5 projects, 3.6%

Often used with

In 89.7% of its projects
In 66.7% of its projects
In 56.4% of its projects
In 55.1% of its projects
In 55.1% of its projects
In 51.3% of its projects
In 50.0% of its projects
In 48.7% of its projects

More about Black

Agent Skills for it
  • black-forest-labs: Black Forest Labs FLUX image generation: flux-2-pro and flux-2-flex text-to-image with async polling. Trigger phrases: black forest labs, BF

See all

Head to head
More in Linting and formatting

Alternatives

Black This page

MITGid 7625.7M/wk

Ruff

Extremely fast Python linter and code formatter written in Rust for modern projects.

MITGid 80108M/wk

Compare Black with another tool

Get started

Install it.

pip install black

No step-by-step start for Black yet: we have not written its hand-checked card.