-
Notifications
You must be signed in to change notification settings - Fork 26
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
Address some suggestions from Ruff and Pylint #89
Address some suggestions from Ruff and Pylint #89
Conversation
acea843
to
569e601
Compare
569e601
to
14d26ed
Compare
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 for opening this PR! Most of your changes look good, but the refactor of shared logic into a new check_constant_folds
function needs some revisions.
gen_from_templates.py
Outdated
@@ -7,6 +7,8 @@ | |||
from string import ascii_lowercase | |||
from typing import Any, Iterable | |||
|
|||
import sys |
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.
Nitpicky comment: please add this line above "import textwrap" (to follow isort
-recommended import order)
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.
Cool, will do.
The function was also renamed to `check_instructions`.
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.
Needs one more change to get rid of an unused import - otherwise this looks ready to go!
This PR contains some minor changes sourced from Ruff and Pylint. There should (hopefully) be no changes to the behavior of any of the files.