Automatic code formatting with Black
February 2nd, 2022
In this article:
Black, the uncompromising Python code formatter, is out of beta!
Black deals away with code style arguments in teams by sticking to one (most popular) style. Although not every Python developer will agree with all the style choices, most would agree consistency is important, and avoiding style arguments is a plus too.
We now support Black out of the box for Django projects. It's not enabled by default, but if you want to use it, just enable it in the Code Style options. The initial code you generate will conform to its code style and you will be able to easily rerun it any time you need (we recommend on every editor save).