Install 22/stable of black

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install black

Don't have snapd? Get set up for snaps.

Channel Version Published

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. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters. Blackened code looks the same regardless of the project you're reading. Formatting becomes transparent after a while and you can focus on the content instead. Black makes code review faster by producing the smallest diffs possible.

Details for black

License
  • unset

Last updated
  • 17 September 2022 - 22/stable
  • 13 September 2024 - latest/edge

Share this snap

Generate an embeddable card to be shared on external websites.


Install black on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.


Where people are using black

Users by distribution (log)

Ubuntu 20.04
Ubuntu 22.04
Ubuntu 24.04
Ubuntu 18.04
Ubuntu 24.10
Manjaro
Ubuntu 23.10