-
Notifications
You must be signed in to change notification settings - Fork 331
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 by Bors] - fix(lint-style): make sure Python style errors fail the linting step; fix --fix mode #15954
Conversation
PR summary 4ae9f71f08Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit> The doc-module for |
While at it, tweak the formatting of error messages slightly: avoid an extra newline after the Python output, and pluralise errors more correctly. Now, we ought to use allUnexpectedError.size for checking: otherwise, we may print about how to fix 0 errors :-)
bf17116
to
24514a4
Compare
Good catch - there was another hidden bug (the --fix option was not percolating all the way down to lint-style.py). |
Yep, I merged this branch into #15934 and reviewdog is picking up the errors now! Great work! bors r+ |
… fix --fix mode (#15954) We need to pass any --fix flag down to `lint-style.py`; this detail got lost along the rewrite. While at it, tweak the formatting of error messages slightly: avoid an extra newline after the Python output, and pluralise errors more correctly.
Pull request successfully merged into master. Build succeeded: |
… fix --fix mode (#15954) We need to pass any --fix flag down to `lint-style.py`; this detail got lost along the rewrite. While at it, tweak the formatting of error messages slightly: avoid an extra newline after the Python output, and pluralise errors more correctly.
… fix --fix mode (#15954) We need to pass any --fix flag down to `lint-style.py`; this detail got lost along the rewrite. While at it, tweak the formatting of error messages slightly: avoid an extra newline after the Python output, and pluralise errors more correctly.
… fix --fix mode (#15954) We need to pass any --fix flag down to `lint-style.py`; this detail got lost along the rewrite. While at it, tweak the formatting of error messages slightly: avoid an extra newline after the Python output, and pluralise errors more correctly.
We need to pass any --fix flag down to
lint-style.py
; this detail got lost along the rewrite.While at it, tweak the formatting of error messages slightly: avoid an extra newline after the Python output,
and pluralise errors more correctly.