I came across a plugin for flake8
called flake8-bugbear. It activates additional checks for likely errors in Python code that are not backed up by PEPs but nevertheless are probably a bad idea, e.g. bare except:
clauses.
The black formatter uses it and we could easily add it to our existing pre-commit configuration. Would there be any reason not to include this?