PyCQA / flake8-bugbear

A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
MIT License
1.05k stars 103 forks source link

add flake8 w/ bugbear to pre-commit config #427

Closed r-downing closed 7 months ago

r-downing commented 7 months ago

For https://github.com/PyCQA/flake8-bugbear/issues/412

Just adds basic flake8 +bugbear check to pre-commit config

r-downing commented 7 months ago

Also, I noticed that the pre-commit auto-updating is breaking the test-suites?

We could add a similar exclude: ^tests/b.* line to pre-commit for black and isort and to bypass the formatting and check for these specific files, since they depend on line and column numbers and contain examples of bad code

jakkdl commented 7 months ago

:tada: