mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 18:48:24 -04:00
combine flake8 configs
also, importantly, remove the `select` config, as this implicitly ignores every other warning type
This commit is contained in:
12
.flake8
12
.flake8
@@ -1,7 +1,15 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
# Rule definitions: http://flake8.pycqa.org/en/latest/user/error-codes.html
|
# Rule definitions: http://flake8.pycqa.org/en/latest/user/error-codes.html
|
||||||
# W503: line break before binary operator
|
|
||||||
exclude = venv*,__pycache__,node_modules,cache
|
exclude = venv*,__pycache__,node_modules,cache
|
||||||
ignore = W503
|
|
||||||
max-complexity = 14
|
max-complexity = 14
|
||||||
max-line-length = 120
|
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
|
||||||
|
|||||||
@@ -9,8 +9,3 @@ multi_line_output=3
|
|||||||
known_third_party=notifications_utils,notifications_python_client
|
known_third_party=notifications_utils,notifications_python_client
|
||||||
known_first_party=app,tests
|
known_first_party=app,tests
|
||||||
include_trailing_comma=True
|
include_trailing_comma=True
|
||||||
|
|
||||||
[flake8]
|
|
||||||
# W504 line break after binary operator
|
|
||||||
extend_ignore=B003, B306, W504
|
|
||||||
select=B901, B902, B903
|
|
||||||
|
|||||||
Reference in New Issue
Block a user