-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Minor improvements to the Python linter #12079
Conversation
Previously, it returned 0 in such a case, which is considered as a successful exit.
@swift-ci please python lint |
Going to manually squash and merge this @swift-ci please smoke test |
utils/python_lint.py
Outdated
python -m pip install flake8-import-order | ||
|
||
For more help, see http://flake8.pycqa.org.""") | ||
return flake8_result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can keep the message, but it seems that our Linux bots lint gyb files and don’t have flake8 installed. Please keep the return value as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for catching this with a smoke test.
I've reverted the change, and added a sticky note.
With this reverted, there are no functional changes. So the commit message for the squash could read: "Improve Python linter documentation".
@swift-ci please smoke test |
⛵️ |
Please see the individual commit messages for details.