Black
Uncompromising Code Formatter for Python
For teams looking to agree on a style for their Python code without having to sort through the details of every decision, use Black.
Black uses PEP 8 as the basis for its code style, but then applies additional rules while still staying in compliance.
Like most code formatters, Black will automatically rewrite your Python code to match the assigned format.
In addition to working on raw Python code, Black can also be used with Jupyter notebooks.