Skip to content

Commit

Permalink
print files that need restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Jul 6, 2021
1 parent a7b9b7f commit 5b985c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion style_doc/style_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ def main(*files, max_len=119, check_only=False, py_only=False, rst_only=False):

changed = style_doc_files(*files, max_len=max_len, check_only=check_only, py_only=py_only, rst_only=rst_only)
if check_only and len(changed) > 0:
print(f"{len(changed)} files should be restyled!")
print(f"The following {len(changed)} files should be restyled:")
for filename in changed:
print(filename)
sys.exit(1)
elif len(changed) > 0:
print(f"Cleaned {len(changed)} files!")
Expand Down

0 comments on commit 5b985c6

Please sign in to comment.