Black
Uncompromising Python code formatter enforcing consistent style automatically.
Used in agent projects
108
0.9% of 12,697 public repos built with AI coding agents
Rank in linting and formatting
#9 of 40
by use in those projects
Downloads
28.7M
PyPI, last 7 days, black
GitHub stars
41.9K
last push Oct 10, 2026
How Black is used
Black is a dependency in 108 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.9%), #9 of 40 in linting and formatting. The most used alternative there is ESLint. Projects that use it most often also use pytest (85.2%), python-dotenv (68.5%), Requests (59.3%). It is more common in projects set up for Roo Code (6.2%) than for Cursor (0.9%).
Often used with Black
| pytest | 85.2% of Black projects · 32.8× more than average |
|---|---|
| python-dotenv | 68.5% of Black projects · 10.5× more than average |
| Requests | 59.3% of Black projects · 11.1× more than average |
| NumPy | 55.6% of Black projects · 14.5× more than average |
| Uvicorn | 55.6% of Black projects · 13.0× more than average |
| flake8 | 53.7% of Black projects · 106.5× more than average |
| Pydantic | 50.9% of Black projects · 10.0× more than average |
| FastAPI | 50.0% of Black projects · 11.8× more than average |
By coding agent
| GitHub Copilot | 1.3% of projects set up for it |
|---|---|
| Claude Code | 1.1% of projects set up for it |
| Cursor | 0.9% of projects set up for it |
| Devin Desktop | 2.6% of projects set up for it |
| Roo Code | 6.2% of projects set up for it |
| Kiro | 3.4% of projects set up for it |
Share of public repos configured for each agent that list Black as a dependency.
Install
| Package | pip install black |
|---|---|
| Main stacks | Python (104), Other (2), Next.js (2) |
| Example projects | Josh-XT/AGiXT, sidetrip-ai/ici-core, jacwu/github-materials, NihadMemmedli/quorvex_ai, mikegianfelice/Hunter |
Alternatives to Black
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| ESLint npm Linter that finds and fixes JavaScript code patterns based on AST analysis. |
4,833 (38.1%) | 162M | 27.6K | MIT |
| Prettier npm Opinionated code formatter for JavaScript, TypeScript, and related languages. |
2,218 (17.5%) | 138M | 52.4K | MIT |
| Biome npm Fast web toolchain providing linting, formatting and code quality all in one. |
445 (3.5%) | 17.7M | 25.9K | MIT OR Apache-2.0 |
| oxlint npm Fast JavaScript linter written in Rust with zero-config defaults. |
206 (1.6%) | 25.7M | 23K | MIT |
| Knip npm Find and fix unused dependencies, exports and files in TypeScript/JavaScript projects. |
150 (1.2%) | 17.5M | 12.4K | ISC |
| stylelint npm Linter that finds and fixes CSS errors and enforces code style conventions. |
140 (1.1%) | 10.8M | 11.5K | MIT |
| oxfmt npm Fast JavaScript formatter from the Oxc compiler project. |
125 (1.0%) | 16.3M | 23K | MIT |
| ESLint Import Resolver TypeScript npm ESLint plugin resolver adding TypeScript support to import/export linting. |
119 (0.9%) | 48.8M | 825 | ISC |