🌐
GitHub
github.com › psf › black
GitHub - psf/black: The uncompromising Python code formatter · GitHub
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.
Starred by 41.5K users
Forked by 2.8K users
Languages   Python
🌐
PyPI
pypi.org › project › black
black · PyPI
The uncompromising 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 ...
      » pip install black
    
Published   Mar 12, 2026
Version   26.3.1
Discussions

Is the damage psf/Black has done to the community reversible?
capable narrow wistful simplistic bells historical bright possessive disagreeable birds This post was mass deleted and anonymized with Redact More on reddit.com
🌐 r/Python
133
0
July 26, 2024
sabse common Python linter, formatter?
🌐 r/Python
Which code formatter do you use?
Black. We don't care that it may look bad. We don't want to argue about formatting. We know it isn't configurable, that's the point. We don't want to deal with everyone's configuration preferences. More on reddit.com
🌐 r/Python
144
68
December 21, 2022
Thoughts on Black?

I want to adopt it but can't yet give in to double quotes. I'll start using it as soon as my religious feelings will evolve.

More on reddit.com
🌐 r/Python
73
106
May 23, 2018
🌐
Black
black.readthedocs.io
Black 26.3.1 documentation
Black makes code review faster by producing the smallest diffs possible. 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.
🌐
Reddit
reddit.com › r/python › is the damage psf/black has done to the community reversible?
r/Python on Reddit: Is the damage psf/Black has done to the community reversible?
July 26, 2024 -

I really don't understand why the Python Black formatter seems to be so popular. What is the point of a non-configurable and highly biased code formatter? I see no benefit in making all the code in the world look the same. They claim they are ending discussions about code formatting, but in reality they have sparked the biggest debate ever in the Python community with their subjective and often contradictory methods that have evolved over decades of established practices without the ability to configure the formatter. [1][2] The single/double quote disaster is just the most prominent example.

There are people out there who put readability above consistency with every other code base in the world that they will never come into contact with.

What bothers me most is the detachment of the Black developers, who dismiss all objections to their style choices as if they were opinions, and end every discussion by saying, you are just expressing an opinion and we prefer ours. But that is not true, there were many reasons, objectively measurable reasons, why this or that decision is better. Someone else might weigh these reasons differently and therefore come to a different conclusion. But the arguments used to enforce Black's decisions have never stood the test of time in a factual discussion.

I also notice that younger developers (< 35 years) are more likely to accept this approach than the more experienced ones.

[1] https://github.com/psf/black/issues/1252

[2] https://github.com/psf/black/issues/373

🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Black Formatter - Visual Studio Marketplace
Extension for Visual Studio Code - Formatting support for Python files using the Black formatter.
🌐
Matplotlib
matplotlib.org › stable › gallery › color › named_colors.html
List of named colors — Matplotlib 3.10.9 documentation
Download Python source code: named_colors.py · Download zipped: named_colors.zip · Gallery generated by Sphinx-Gallery ·
🌐
Python Pool
pythonpool.com › home › blog › introduction to black formatter for python | git integration
Introduction to Black Formatter for Python | Git Integration - Python Pool
January 1, 2024 - Simply click on the cell that is needed to be formatted and then click on the Black button. ... Black follows PEP-8 guidelines staunchly in other words it doesn’t make any compromises. It does its job quickly and effectively hence, increasing readability and maintaining overall consistency in the code. ... Flake-8 only suggests changes that should be made to make our code PEP-8 compliant while Black is the uncompromising Python code formatter, does all the formatting automatically in accordance with PEP-8.
Find elsewhere
🌐
Matplotlib
matplotlib.org › stable › users › explain › colors › colormaps.html
Choosing Colormaps in Matplotlib — Matplotlib 3.10.9 documentation
To make scatter markers change ...formatter(formatter) ax.xaxis.set_tick_params(rotation=50) ax.set_ylabel('Lightness $L^*$', fontsize=12) ax.set_xlabel(cmap_category + ' colormaps', fontsize=14) fig.tight_layout(h_pad=0.0, pad=1.5) plt.show() It is important to pay attention to conversion to grayscale for color plots, since they may be printed on black and white ...
🌐
Sglavoie
sglavoie.com › posts › 2019 › 07 › 13 › black-a-python-formatter-to-brighten-your-workflow
Meet Black, a superb Python code formatter that will automatically reformat your code in accordance to PEP-8 standards.
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.
🌐
Python Engineer
python-engineer.com › posts › black-code-formatter
Why I Don't Care About Code Formatting In Python | Black Tutorial - Python Engineer
Black is the uncompromising Python code formatter. By using it, you agree to cede control over details of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-code-formatting-using-black
Python code formatting using Black - GeeksforGeeks
August 5, 2021 - Here Black comes into play not only does it report format errors but also fixes them. ... Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting.
🌐
GeeksforGeeks
geeksforgeeks.org › python › introduction-to-python-black-module
Introduction to Python Black Module - GeeksforGeeks
July 23, 2025 - Here's how to integrate it: First, install the nb_black extension, which allows Black to be used in Jupyter notebooks: ... Now, every time we run a cell, Black will automatically format the Python code within that cell according to its style rules.
🌐
InfoWorld
infoworld.com › home › videos › dev with serdar › using the "black" code formatter in python
Using the “black” code formatter in Python | InfoWorld
Learn coding in Python, Go and Rust from Serdar Yegulalp, software dev specialist and senior writer at InfoWorld. Episode 12 Using the “black” code formatter in Python
Published   April 27, 2020
🌐
Hexmos
hexmos.com › freedevtools › c › languages › black
Black Formatter - Python Code Formatting Tool Cheatsheet | languages Reference | Online Free DevTools
Format Python code with Black, an uncompromising code formatter. Ensure consistent code style across your projects. Check and diff formatting changes easily.
🌐
Medium
medium.com › @grepix › black-the-uncompromising-python-code-formatter-452a99930c62
Black: The Uncompromising Python Code Formatter | by Grepix | Medium
June 10, 2023 - It’s a tool that demands you cede control over the tiny details of hand-formatting. In return, it offers speed, determinism, and freedom from the constant nagging of pycodestyle about formatting.
🌐
Paul-nameless
paul-nameless.com › black.html
Black Python formatting
March 19, 2021 - Black is the uncompromising Python code formatter. It gives you speed, determinism, and freedom from pycodestyle nagging about formatting.
🌐
Code Beautify
codebeautify.org › python-formatter-beautifier
Python Formatter and Beautifier
Python Formatter helps to format unformatted or ugly Python data and helps to save and share Python.
🌐
W3Schools
w3schools.com › css › css_text.asp
W3Schools.com
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.