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

Add flake8-bugbear as additional flake8 plugin #6662

Closed
hendrikmakait opened this issue Jul 1, 2022 · 1 comment · Fixed by #6809
Closed

Add flake8-bugbear as additional flake8 plugin #6662

hendrikmakait opened this issue Jul 1, 2022 · 1 comment · Fixed by #6809

Comments

@hendrikmakait
Copy link
Member

flake8-bugbear (https://github.com/PyCQA/flake8-bugbear) is a plugin for flake8 that contains additional rules aimed at finding likely bugs and design problems in the code. Notable rules include:

  • B006: Do not use mutable data structures for argument defaults.
  • B018: Found useless expression.

At the time of this writing, adding flake8-bugbear spits out 166 problems, most of which are in tests. If we decide to go with flake8-bugbear, we could ignore it for tests and clean those up over time before flipping the switch.

@fjetter
Copy link
Member

fjetter commented Aug 8, 2022

+1 I love automated code reviews

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 a pull request may close this issue.

2 participants