black man page

black — The uncompromising code formatter.

Synopsis

black [Options] [SRC]...

Description

The uncompromising code formatter.

Options

-l, --line-length INTEGER

How many character per line to allow.  [default: 88]

--check

Don't write the files back, just return the status.  Return code 0 means nothing would change.  Return code 1 means some files would be reformatted.  Return code 123 means there was an internal error.

--diff

Don't write the files back, just output a diff for each file on stdout.

--fast / --safe

If --fast given, skip temporary sanity checks. [default: --safe]

-q, --quiet

Don't emit non-error messages to stderr. Errors are still emitted, silence those with 2>/dev/null.

--version

Show the version and exit.

Info

04-May-2018 black Manual