Add flake8-bugbear rules to setup.cfg
@@ -23,9 +23,17 @@ exclude =
.scratch,
_vendor,
data
-select = E,W,F
-ignore = W504
-
+ # TODO: Remove when fixing flake8 warnings
+ src/pip/*
+# B = bugbear
+# E = pycodestyle errors
+# F = flake8 pyflakes
+# W = pycodestyle warnings
+# B9 = bugbear opinions
+select = B, E, W, F, B9
+per-file-ignores =
+ # B011: Do not call assert False since python -O removes these calls
+ tests/*: B011
[mypy]
follow_imports = silent
ignore_missing_imports = True
