aboutsummaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg16
1 files changed, 16 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index f8e3b5e..08cecbb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,3 +14,19 @@ source =
src/markupsafe
.tox/*/lib/python*/site-packages/markupsafe
.tox/*/site-packages/markupsafe
+
+[flake8]
+# B = bugbear
+# E = pycodestyle errors
+# F = flake8 pyflakes
+# W = pycodestyle warnings
+# B9 = bugbear opinions
+select = B, E, F, W, B9
+# E203 = slice notation whitespace, invalid
+# E501 = line length, handled by bugbear B950
+# W503 = bin op line break, invalid
+ignore = E203, E501, W503
+# up to 88 allowed by bugbear B950
+max-line-length = 80
+# _compat names and imports will always look bad, ignore warnings
+exclude = src/markupsafe/_compat.py