Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-109408: Add the docs whitespace check from patchcheck to pre-commit #109854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 10, 2023
Prev Previous commit
Next Next commit
Properly pluralise file(s), fix Unix typo
  • Loading branch information
hugovk committed Sep 25, 2023
commit d7690a3588a7f32117a730c35a2697fa9cc17688
5 changes: 3 additions & 2 deletions 5 Tools/patchcheck/patchcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@ def ci(pull_request):
if not fixed:
print('No whitespace issues found')
else:
print(f'Please fix the {len(fixed)} file(s) with whitespace issues')
print('(on UNIX you can run `make patchcheck` to make the fixes)')
count = len(fixed)
print(f'Please fix the {count} {n_files_str(count)} with whitespace issues')
hugovk marked this conversation as resolved.
Show resolved Hide resolved
print('(on Unix you can run `make patchcheck` to make the fixes)')
sys.exit(1)


Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.