OptionsOn black itself
--code-c
Format the code passed in as a string <string>
--line-length-l
How many characters per line to allow <line length>
--target-version-t
Python versions that should be supported <python version>
--pyi
Format all input files regardless of file extension
--ipynb
Format all input files like Jupyter Notebooks regardless of file extension
--python-cell-magics
Add the given magic to the list of known python-magics <python-magic>
--skip-string-normalization-S
Don't normalize string quotes or prefixes
--skip-magic-trailing-comma-C
Don't use trailing commas as a reason to split lines
--preview
Enable potentially disruptive style changes
--check
Don't write the files back, just return the status
--diff
Don't write the files back, just output a diff for each file on stdout
--no-color
Show uncolored diff
--fast
Skip temporary sanity checks
--safe
Run temporary sanity checks
--required-version
Require a specific version of Black <version>
--include
Regex that matches files and directories that should be included on recursive searches <Regex>
--exclude
Regex that matches files and directories that should be excluded on recursive searches <Regex>
--extend-exclude
Additional exlusions <Regex>
--force-exclude
Exlude matching files and folders even when passed explicitly <Regex>
--stdin-filename
The name of the file when passing it through stdin <file>
--workers-W
Number of parallel workers <integer>
--quiet-q
Don't emit non-error messages to stderr
--verbose-v
Also emit messages about files that were not changed or were ignored due to exclusion patterns
--version
Show the version
--config
Read configuration from filepath <file>
--help-h
Show usage information