summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-12-26 22:17:52 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-12-26 22:17:52 +0100
commit33d09d12cb20412fbe1c490e7c3865202f3b7cf2 (patch)
treef195c8a4ed6e574a53730c5d02e801fd70305585
parent2878bad0df158243d1e6601110ec12868e201d81 (diff)
downloadpython-setuptools-git-33d09d12cb20412fbe1c490e7c3865202f3b7cf2.tar.gz
Use `extend-ignore` in flake8 config
This option allows adding extra ignored rules to the default list instead of replacing it. The default exclusions are: E121, E123, E126, E226, E24, E704, W503 and W504. Refs: * https://github.com/pypa/setuptools/pull/2486/files#r541943356 * https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-extend-ignore * https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore * #2501 * https://github.com//skeleton/issues/28
-rw-r--r--.flake86
1 files changed, 1 insertions, 5 deletions
diff --git a/.flake8 b/.flake8
index 8bc2d270..bfa744be 100644
--- a/.flake8
+++ b/.flake8
@@ -3,11 +3,7 @@ max-line-length = 88
exclude =
setuptools/_vendor
pkg_resources/_vendor
-ignore =
- # W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513
- W503
- # W504 has issues https://github.com/OCA/maintainer-quality-tools/issues/545
- W504
+extend-ignore =
# Black creates whitespace before colon
E203
setuptools/site-patch.py F821