Skip to content
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

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

neuroevolutus
Copy link
Contributor

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.

@neuroevolutus neuroevolutus force-pushed the pylint-and-ruff-fixes branch 2 times, most recently from acea843 to 569e601 Compare October 22, 2024 00:05
Copy link
Owner

@nlsandler nlsandler left a 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.

@@ -7,6 +7,8 @@
from string import ascii_lowercase
from typing import Any, Iterable

import sys
Copy link
Owner

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, will do.

test_framework/tacky/common.py Outdated Show resolved Hide resolved
test_framework/tacky/common.py Outdated Show resolved Hide resolved
test_framework/tacky/common.py Outdated Show resolved Hide resolved
test_framework/tacky/common.py Outdated Show resolved Hide resolved
test_framework/tacky/common.py Outdated Show resolved Hide resolved
test_framework/tacky/common.py Outdated Show resolved Hide resolved
Copy link
Owner

@nlsandler nlsandler left a 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!

test_framework/tacky/common.py Outdated Show resolved Hide resolved
@nlsandler nlsandler merged commit 4731ffe into nlsandler:main Oct 28, 2024
95 checks passed
@neuroevolutus neuroevolutus deleted the pylint-and-ruff-fixes branch October 28, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants