summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorDevesh Kumar Singh <deveshkusingh@gmail.com>2020-06-05 02:40:49 +0530
committerDevesh Kumar Singh <deveshkusingh@gmail.com>2020-06-05 02:40:49 +0530
commit6716a2bec56d661b944e7cc68d3db32a71d7249a (patch)
treedeed59767c8e85b337279a03813d260dd177776b /setup.cfg
parent9a52dcd62b3a4dd22d9108b178b35aee20bfcd56 (diff)
downloadpip-6716a2bec56d661b944e7cc68d3db32a71d7249a.tar.gz
Add flake8-bugbear rules to setup.cfg
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg14
1 files changed, 11 insertions, 3 deletions
diff --git a/setup.cfg b/setup.cfg
index f0bd7a8d9..d1928ed56 100644
--- a/setup.cfg
+++ b/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