-
-
Notifications
You must be signed in to change notification settings - Fork 46.5k
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
Add flake8-builtins to pre-commit and fix errors #7105
Conversation
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
@cclauss |
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.
AWESOME!!!
@dhruvmanila |
for more information, see https://pre-commit.ci
Co-authored-by: Dhruv Manilawala <[email protected]>
@dhruvmanila I have approved. Please merge when you feel that it is ready. |
The addition of these two naming tools is a great step forward for this repo. Thank you for doing this!! |
No problem. I'm thinking of another one for unused variable. What's your opinion on this? |
Flake8 has unused variable bulitin... F841 | local variable name is assigned to but never used |
Apparently not when it comes to things such as |
Oh... You want https://github.com/PyCQA/flake8-bugbear for that but we need to be careful not to go overboard and make contributors too angry to fix all the nits. |
Do you think we should implement it? If you think it will be too annoying then that's fine |
How many of our current files would need to change if we enabled bugbear? |
I'll get you a statistic, one second |
around 50 it seems |
@dhruvmanila You thoughts?
|
I haven't looked at them so not so sure. We could open an issue with all the available tools and take the discussion over there. |
Describe your change:
Implements #7104
Checklist:
Fixes: #{$ISSUE_NO}
.