Black

Python Software Foundation·psf.black

The uncompromising Python code formatter

Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting.

winget install --id psf.black --exact --source winget

Latest 26.5.1·May 18, 2026

Release Notes

Stable style

  • Fix unstable formatting of annotated assignments whose subscript annotation contains an inline comment (e.g. x: list[ # pyright: ignore[...]) (#5130)
  • Preserve inline comments (including # type: ignore) immediately before a

    fmt: skip line, avoiding AST equivalence failures (#5139)

Packaging

  • Correct the version in the published executables (#5137)

Documentation

  • Add Neovim integration guide covering conform.nvim, ALE, and simple command approaches (#5124)

Installer type: portable

x64D3D971D1E86DDDE7F9C114E4B8170CF1D5DF841C021014C288A08CAF699E1DD8

Details

Homepage
https://github.com/psf/black
License
MIT
Publisher
Python Software Foundation
Support
https://github.com/psf/black/issues
Copyright
Copyright (c) 2018 Łukasz Langa

Tags

autopep8codecodeformatterformattergofmthacktoberfestpre-commit-hookpythonyapf

Older versions (2)

25.1.0
x64C1A61EAD32306DEC1B7047A2A4E28059FDADCB9696705BC7505E109142282AFA
24.10.0
x64077AC67CB5DBB804406BD4956756C16D26F4C7D87C70438078888CBEC68D27EF