4 ms·
With Python, use Black or go home.
by calmbonsai 2y ago
With Python, use Black or go home.
- emmelaich 2y agoNever heard of it so looked it up: https://github.com/psf/black https://github.com/psf/black > 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.
- vaylian 2y agoThis. There are situations where I don't agree with the Black formatting, but none of them bother me enough to drop Black. Automatic consistent code formatting is very nice, especially when you need to work with other people on the same code.
- Sohcahtoa82 2y agoYup. We use Black where I work. It runs on every PR and we don't approve PRs that aren't approved by Black. Most of us have created a pre-commit hook so we don't even make commits that Black won't like.