-
Notifications
You must be signed in to change notification settings - Fork 119
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
chore: expand ruff rule sets and make corresponding minor adjustments #1114
Conversation
Many assorted adjustments to make ruff (almost) pass.
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! Left a few initial comments.
One option here would be to split this into two PRs, one that has all the changes outside of pyproject.toml (and the noqa's, I guess) and then a second one that has the pyproject.toml and noqa changes, and also adds the previous commit to a |
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.
Looks great to me, just the few things we discussed.
actions_metadata = actions_meta.read_text() | ||
else: | ||
actions_metadata = None | ||
actions_metadata = actions_meta.read_text() if actions_meta.exists() else None |
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.
At first I think we should disable this one, but looking over the PR I think it's almost always an improvement, so this seems reasonable to keep enabled.
We briefly discussed this and decided that it's not worth it for this PR. |
This PR enables a few additional
ruff
checks - since they are bundled withruff
andruff
is extremely fast, they are basically free. I cherry-picked the set that I agree with/like the most - I'm happy to argue for the inclusion of any specific ones where you disagree, or consider other rules if you have preferences.noqa
shows that thought has gone into it, which has value in itself)Notes:
Where the linter picks up new issues, these are handled in one of these ways:
noqa:
directive if it's a false positive or should otherwise be permanently ignored in that specific caseContinues from #1102.