Skip to content

Commit

Permalink
Use extend-ignore in flake8 config
Browse files Browse the repository at this point in the history
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
* pypa#2501
* https://github.com//skeleton/issues/28
  • Loading branch information
webknjaz committed Dec 26, 2020
1 parent 2878bad commit 33d09d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .flake8
Expand Up @@ -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
Expand Down

0 comments on commit 33d09d1

Please sign in to comment.