Automic VaultAutomic Vault

brew

black を Homebrew, apk, apt, dnf, Nix, winget でインストール

black のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install black

local Homebrew formula metadata

Linux

Alpine Linux apk確認済み · 92%
sudo apk add black

Alpine Linux edge package indexes · black · ソース: dl-cdn.alpinelinux.org

Debian apt確認済み · 92%
sudo apt install black

Debian stable package indexes · black · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install black

Fedora Rawhide package metadata · black · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#black

nixpkgs package indexes · black · ソース: raw.githubusercontent.com

Windows

Windows Package Manager確認済み · 92%
winget install --id psf.black -e

Windows Package Manager source index · psf.black · ソース: cdn.winget.microsoft.com

概要

パッケージ概要

Python code formatter

コマンドとエイリアス

  • black
  • blackd

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2018-03-14: Black 18.3a0 is uploaded to PyPI and the GitHub repository is created.
  • 2019: The project gains broad public visibility through talks, docs, badges, and early adopter projects.
  • 2022-01-29: Black 22.1.0 is published as the first non-alpha, stable-style release line.
  • 2020s: Black becomes widely packaged across Homebrew, Linux distributions, Nix, and winget while remaining centered on PyPI and pre-commit workflows.
  • 2024-2026: Black's changelog documents yearly stable-style releases and preview/unstable channels for future formatting changes.

Related projects

  • Black's README explicitly situates it near gofmt and lists autopep8 and YAPF among related Python formatters through repository topics.
  • It is commonly paired with pre-commit, CI systems, editor integrations, and Python packaging metadata in pyproject.toml.

セキュリティ状態

リスクレベル: orange

formula declares a Homebrew service.

リスク分類器

リスク orange · 信頼度 中 · infrastructure

理由

  • formula declares a Homebrew service

信号

  • metadata:service

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • formula メタデータがサービスまたはデーモンブロックを宣言しています。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
pyproject.toml$XDG_CONFIG_HOME/black~/.config/black
Windows
pyproject.toml~\.black

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
blackcliグローバル実行可能ファイル
blackdcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版26.5.1
マネージャ更新日2026-06-09
ローカルデータOK
上流not checked
検出された最新未検出

https://black.readthedocs.io/en/stable/

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:black
バージョン26.5.1
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/black
ホームページhttps://black.readthedocs.io/en/stable/
リポジトリhttps://github.com/psf/black
上流ドキュメントhttps://black.readthedocs.io/en/stable
ライセンスMIT
ソースアーカイブhttps://files.pythonhosted.org/packages/c0/37/5628dd55bf2b34257fc7603f0fe97c40e3aaf24265f416a9c85c95ca1436/black-26.5.1.tar.gz
最終更新2026-06-09T10:24:11Z
Pulseupdated
依存関係python@3.14
ビルド依存関係rust
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービスdeclared

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameblack
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

black 25.1.0-3+deb13u1

uncompromising Python code formatter (Python 3)

https://github.com/psf/black

sudo apt install black
  • Section: python
  • Architecture: amd64
  • 10 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Black
Debian stable package indexes · deb.debian.org · Debian stable package indexes: black from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python-black-doc 25.1.0-3+deb13u1

uncompromising Python code formatter (common documentation)

https://github.com/psf/black

sudo apt install python-black-doc
  • Section: doc
  • Architecture: all
  • Source Package: black
  • 1 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Black
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python-black-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

black

nix profile install nixpkgs#black
  • normalized package name match
  • 一致条件: Black
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: black from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

black 24.2.0-1ubuntu1

uncompromising Python code formatter (Python 3)

https://github.com/psf/black

sudo apt install black
  • Section: universe/python
  • Architecture: all
  • 10 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Black
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: black from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python-black-doc 24.2.0-1ubuntu1

uncompromising Python code formatter (common documentation)

https://github.com/psf/black

sudo apt install python-black-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: black
  • 1 依存関係
  • normalized package name match
  • 一致条件: Black
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python-black-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

black 26.3.0-r1

The uncompromising Python code formatter

https://github.com/psf/black

sudo apk add black
  • License: MIT
  • Architecture: x86_64
  • Source Package: black
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Black
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: black from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

black-bash-completion 26.3.0-r1

Bash completions for black

https://github.com/psf/black

sudo apk add black-bash-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: black
  • normalized package name match
  • 一致条件: Black
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: black-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

black-fish-completion 26.3.0-r1

Fish completions for black

https://github.com/psf/black

sudo apk add black-fish-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: black
  • normalized package name match
  • 一致条件: Black
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: black-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

black-pyc 26.3.0-r1

Precompiled Python bytecode for black

https://github.com/psf/black

sudo apk add black-pyc
  • License: MIT
  • Architecture: x86_64
  • Source Package: black
  • 1 依存関係
  • normalized package name match
  • 一致条件: Black
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: black-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

black-zsh-completion 26.3.0-r1

Zsh completions for black

https://github.com/psf/black

sudo apk add black-zsh-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: black
  • normalized package name match
  • 一致条件: Black
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: black-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

black 25.1.0-9.fc45

The uncompromising code formatter

https://github.com/psf/black

sudo dnf install black
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-black
  • 3 依存関係
  • 6 提供
  • normalized package name match
  • 一致条件: Black
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: black from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
winget95%

psf.black

winget install --id psf.black -e
  • normalized package name match
  • 一致条件: Black
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: psf.black from https://cdn.winget.microsoft.com/cache/source.msix

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment