--code, -c <string> | Format the code passed in as a string |
--line-length, -l <line length> | How many characters per line to allow |
--target-version, -t <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 <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 |
--color | Show colored diff |
--no-color | Show uncolored diff |
--fast | Skip temporary sanity checks |
--safe | Run temporary sanity checks |
--required-version <version> | Require a specific version of Black |
--include <Regex> | Regex that matches files and directories that should be included on recursive searches |
--exclude <Regex> | Regex that matches files and directories that should be excluded on recursive searches |
--extend-exclude <Regex> | Additional exlusions |
--force-exclude <Regex> | Exlude matching files and folders even when passed explicitly |
--stdin-filename <file> | The name of the file when passing it through stdin |
--workers, -W <integer> | Number of parallel workers |
--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 <file> | Read configuration from filepath |
--help, -h | Show usage information |