macOS
brew install blacklocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de black pour les workflows d'agents IA.
installation
brew install blacklocal Homebrew formula metadata
sudo apk add blackAlpine Linux edge package indexes · black · Source: dl-cdn.alpinelinux.org
sudo apt install blackDebian stable package indexes · black · Source: deb.debian.org
sudo dnf install blackFedora Rawhide package metadata · black · Source: dl.fedoraproject.org
nix profile install nixpkgs#blacknixpkgs package indexes · black · Source: raw.githubusercontent.com
winget install --id psf.black -eWindows Package Manager source index · psf.black · Source: cdn.winget.microsoft.com
aperçu
Python code formatter
historique
Black is the opinionated Python code formatter whose promise is deterministic, low-choice formatting. It became one of the defining Python developer tools of the late 2010s and 2020s, normalizing gofmt-style formatting in Python projects.
Black was first published to PyPI in March 2018 and its GitHub repository was created the same day. Its README and documentation present it as 'The Uncompromising Code Formatter': users trade manual formatting control for speed, determinism, smaller diffs, and fewer style arguments.
The project is now maintained under the Python Software Foundation GitHub organization. Its documentation codifies a stability policy, preview style, and yearly stable style cadence, allowing Black to support new Python syntax while preserving formatting predictability for established projects.
Black spread rapidly through PyPI, pre-commit, CI, editor integrations, and Linux/macOS/Windows package managers. The README lists major projects and organizations using it, including pytest, Django, pandas, SQLAlchemy, Home Assistant, Zulip, Dropbox, Lyft, Mozilla, Quora, and others.
Its adoption changed Python package maintenance culture: many projects stopped debating PEP 8 edge cases in reviews and delegated whitespace, wrapping, quote normalization, and import-adjacent formatting decisions to a pinned formatter version.
The standard CLI workflow is black {source_file_or_directory}; Black reformats files in place and can also run as python -m black. Configuration normally lives in a project's pyproject.toml under [tool.black], with global fallback files at $XDG_CONFIG_HOME/black or ~/.config/black on Unix-like systems and ~/.black on Windows.
Black is commonly run from pre-commit hooks, GitHub Actions, editors, and CI jobs. Its documentation recommends the psf/black-pre-commit-mirror hook for version-control integration and warns that blackd does not use pyproject.toml configuration.
Black is package-nerd significant because it made formatter pinning a first-class dependency-management concern in Python. A Black version in pyproject.toml, pre-commit config, CI images, or distro packages can affect every formatted file in a repository, so release notes and stability guarantees matter more than they do for many CLIs.
It also helped shift Python packaging metadata toward pyproject.toml as a shared control plane: the same file that PEP 518 introduced for builds became the obvious place to store Black's project style. Black's presence in Homebrew, Debian, Ubuntu, Fedora, Alpine, Nix, and winget mirrors its role as both Python package and general developer workstation tool.
For maintainers, Black became shorthand for removing a category of bikeshed from reviews. For downstream packagers, it is a high-visibility fast-moving Python application that must track supported Python versions, parser behavior, compiled wheels, pre-commit mirrors, and reproducible CLI behavior.
posture de sécurité
formula declares a Homebrew service.
risque orange · confiance moyen · infrastructure
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
pyproject.toml$XDG_CONFIG_HOME/black~/.config/blackpyproject.toml~\.blackexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
black | cli | exécutable global | |
blackd | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://black.readthedocs.io/en/stable/
métadonnées d'installation
| Clé du paquet | brew:black |
|---|---|
| Version | 26.5.1 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/black |
| Page d'accueil | https://black.readthedocs.io/en/stable/ |
| Dépôt | https://github.com/psf/black |
| Docs amont | https://black.readthedocs.io/en/stable |
| Licence | MIT |
| Archive source | https://files.pythonhosted.org/packages/c0/37/5628dd55bf2b34257fc7603f0fe97c40e3aaf24265f416a9c85c95ca1436/black-26.5.1.tar.gz |
| Dernière mise à jour | 2026-06-09T10:24:11Z |
| Pulse | updated |
| Dépendances | python@3.14 |
| Dépendances de compilation | rust |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | declared |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | black |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
black 25.1.0-3+deb13u1
uncompromising Python code formatter (Python 3)
sudo apt install blackpython-black-doc 25.1.0-3+deb13u1
uncompromising Python code formatter (common documentation)
sudo apt install python-black-docblack
nix profile install nixpkgs#blackblack 24.2.0-1ubuntu1
uncompromising Python code formatter (Python 3)
sudo apt install blackpython-black-doc 24.2.0-1ubuntu1
uncompromising Python code formatter (common documentation)
sudo apt install python-black-docblack 26.3.0-r1
The uncompromising Python code formatter
sudo apk add blackblack-bash-completion 26.3.0-r1
Bash completions for black
sudo apk add black-bash-completionblack-fish-completion 26.3.0-r1
Fish completions for black
sudo apk add black-fish-completionblack-pyc 26.3.0-r1
Precompiled Python bytecode for black
sudo apk add black-pycblack-zsh-completion 26.3.0-r1
Zsh completions for black
sudo apk add black-zsh-completionblack 25.1.0-9.fc45
The uncompromising code formatter
sudo dnf install blackpsf.black
winget install --id psf.black -episte source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.