combine flake8 configs

also, importantly, remove the `select` config, as this implicitly
ignores every other warning type
This commit is contained in:
Leo Hemsted
2019-11-29 12:35:04 +00:00
parent 5f9323f863
commit d59c3abf2b
2 changed files with 10 additions and 7 deletions

12
.flake8
View File

@@ -1,7 +1,15 @@
[flake8]
# Rule definitions: http://flake8.pycqa.org/en/latest/user/error-codes.html
# W503: line break before binary operator
exclude = venv*,__pycache__,node_modules,cache
ignore = W503
max-complexity = 14
max-line-length = 120
# B003 assigning to os.environ
# B306 BaseException.message has been deprecated
# W503: line break before binary operator
# W504 line break after binary operator
extend_ignore=
B003,
B306,
W503,
W504

View File

@@ -9,8 +9,3 @@ multi_line_output=3
known_third_party=notifications_utils,notifications_python_client
known_first_party=app,tests
include_trailing_comma=True
[flake8]
# W504 line break after binary operator
extend_ignore=B003, B306, W504
select=B901, B902, B903