-
Notifications
You must be signed in to change notification settings - Fork 8
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
Ruff comprehensions and performance #66
Conversation
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.
Hi @cclauss, thanks for adding these rules! I'm a bit perplexed about setting check=False
for all of the subprocess.run()
calls, is there a reason in particular for doing so?
Should this be upgraded to Line 135 in 9109741
|
Many of these can be |
Co-authored-by: Agriya Khetarpal <[email protected]>
pyodide_build/vendor/loky.py
Outdated
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.
These changes look good but should we blanket exclude vendor from linting? cc @ryanking13
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.
Yeah I think we should exclude vendor
directory from being linted.
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.
Thanks @cclauss looks good to me other than a few places where we check=True
should be check=False
which I've marked.
Co-authored-by: Hood Chatham <[email protected]>
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.
Okay the last thing this needs is revert changes to vendor and exclude vendor from all lint rules.
for more information, see https://pre-commit.ci
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.
Sorry, I missed this. Yes, I think we should do this, |
Thanks @cclauss! |
Upgrade
ruff
to the current version.Complete the compliance with Pylint rules.
Add various list, dict, set comprehension, and performance improvements.