-
Notifications
You must be signed in to change notification settings - Fork 37.7k
tests: Port lint-all.sh
to lint-all.py
#24982
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
Conversation
b84ccb1
to
8cd3644
Compare
Converting `lint-all.sh` to `lint-all.py`.
8cd3644
to
29f44fe
Compare
Ack 29f44fe This is my first review but the changes seem straightforward enough. Pulled the PR and ensured it ran all lint files as intended. Looks good! |
|
||
exit_code = 0 | ||
mod_path = Path(__file__).parent | ||
for lint in glob(f"{mod_path}/lint-*"): |
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.
for lint in glob(f"{mod_path}/lint-*"): | |
for lint in glob(f"{mod_path}/lint-*.py"): |
wondering if we can make this py
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.
If yes, we can run the subtests with sys.executable
instead of calling out to python3
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.
It can be *.py
after #24840. I'd also like a lint to prevent someone adding a non-Python linter again 😄 Though it's possibly out of scope of this PR.
Tested ACK 29f44fe |
lint-all.sh
to lint-all.py
.lint-all.sh
to lint-all.py
This PR is converting
test/lint/lint-all.sh
totest/lint/lint-assertions.py
. It's an item of #24783.