--code,-c <command> | Format the code passed in as a string |
--line-length,-l <command> | How many characters per line to allow |
--target-version,-t <command> | |
--pyi | Format all input files regardless of file extension |
--ipynb | Format all input files like Jupyter Notebooks regardless of file extension |
--python-cell-magics <command> | |
--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 <command> | Require a specific version of Black |
--include <command> | Regex that matches files and directories that should be included on recursive searches |
--exclude <command> | Regex that matches files and directories that should be excluded on recursive searches |
--extend-exclude <command> | Additional exlusions |
--force-exclude <command> | Exlude matching files and folders even when passed explicitly |
--stdin-filename <command> | The name of the file when passing it through stdin |
--workers,-W <command> | 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 <command> | Read configuration from filepath |
--help,-h | Show usage information |