v 24.1.1 Updated: 1 week, 4 days ago
The uncompromising code formatter for Python.
By using Black, you agree to cede control over minutiae of hand-formatting your Python source code. 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. 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.
To install py312-black, paste this in macOS terminal after installing MacPorts
sudo port install py312-black