Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Switch to ruff / Add pre-commit hook #4428
Switch to ruff / Add pre-commit hook #4428
Changes from 5 commits
81e7e7e
2b93980
7a1dcc5
8466a81
eff0ae1
e75b494
0f78e5e
c337bee
ab891a0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is this still an accurate list? These linters rules seem useful, are we failing a lot of them?
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.
So after looking at the code these are checks that I excluded for the following reasons, correct me if I am wrong:
for topic, name, items in group:
, even if we just use topic/items?None
, but just falsy?True
conftest.py
fileFor each rule, you can comment out the ignore-line and check which lines would be affected to see for yourself as well. I think for
F841
especially, you will be able to judge better what to exclude and what to leave.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.
To
B007
: You can put an underscore in front of the variable that is not required, but named. E.g:for topic, _name, items in group:
.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.
@HansBambel Just saw that you commented, great to see you here 😄