black Command Examples

Format Python code automatically. More information: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html.

black {{path/to/file_or_directory}}

black {{[-c|--code]}} "{{code}}"

black --check {{path/to/file_or_directory}}

black --diff {{path/to/file_or_directory}}

black {{[-q|--quiet]}} {{path/to/file_or_directory}}

black {{[-S|--skip-string-normalization]}} {{path/to/file_or_directory}}