summaryrefslogtreecommitdiff
path: root/.flake8
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-07-22 11:32:32 +0200
committerFlorian Bruhin <me@the-compiler.org>2019-07-22 11:32:32 +0200
commite08f3da1e1d965641e32427e6a74f30de0712eaf (patch)
treec2248e74dd0191f17650b181e0265e7b88fb460e /.flake8
parent46d11964a649f411e09d066d0091c04444577acb (diff)
downloadqutebrowser-e08f3da1e1d965641e32427e6a74f30de0712eaf.tar.gz
qutebrowser-e08f3da1e1d965641e32427e6a74f30de0712eaf.zip
flake8: Ignore B011 in tests
Diffstat (limited to '.flake8')
-rw-r--r--.flake84
1 files changed, 3 insertions, 1 deletions
diff --git a/.flake8 b/.flake8
index 04c491bf2..d9c9c44d9 100644
--- a/.flake8
+++ b/.flake8
@@ -2,6 +2,8 @@
exclude = .*,__pycache__,resources.py
# B001: bare except
# B008: Do not perform calls in argument defaults. (fine with some Qt stuff)
+# B011: Do not call assert False since python -O removes these calls. Instead
+# callers should raise AssertionError().
# B305: .next() (false-positives)
# E128: continuation line under-indented for visual indent
# E226: missing whitespace around arithmetic operator
@@ -47,7 +49,7 @@ min-version = 3.4.0
max-complexity = 12
per-file-ignores =
qutebrowser/api/hook.py : N801
- tests/* : D100,D101
+ tests/* : B011,D100,D101
tests/unit/browser/test_history.py : D100,D101,N806
tests/helpers/fixtures.py : D100,D101,N806
tests/unit/browser/webkit/http/test_content_disposition.py : D100,D101,D400