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}}"

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

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

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

black --skip-string-normalization {{path/to/file_or_directory}}