Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Black code formatter

The black code formatter.

$ pip install black

In the CI one can use the --check flag. It won’t change the code. It will only report if the code is formatted according to its rules. It will fail if black would want to change the format.

$ black --check .

Read the help and the documentation

black -h