black --check .

Category: Python & pip

black --check .

Check formatting without modifying files (exit 1 if unformatted)

Checks if files need formatting without changing them. Exit code 1 means something needs reformatting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.