Automatic code formatting with Black

Published on February 2nd, 2022 in Django/Python

Black, the uncompromising Python code formatter, is out of beta!

Black

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).


About API Bakery

API Bakery generates boilerplate code for your backend service in seconds. Out of the box you get routes, data models, authentication, validation, tests, and integrations - customized for you and ready for production.

Try it now for free No sign up required