Use flake8 extend-exclude setting instead of exclude

This setting was added in flake8 3.8.0 and allows adding entries to the
exclude list without also removing the default entries.
This commit is contained in:
dgelessus 2020-07-18 13:40:15 +02:00
parent b595456a05
commit 5456013bf4
2 changed files with 2 additions and 7 deletions

View File

@ -55,15 +55,10 @@ console_scripts =
rsrcfork = rsrcfork.__main__:main
[flake8]
exclude =
extend-exclude =
.mypy_cache/,
build/,
dist/,
# The following entries would also be added by default by flake8 when not specifying a custom exclude list.
# TODO Once flake8 3.8.0 is released, change the name of this configuration setting from exclude to extend-exclude and remove the entries below.
.git/,
.tox/,
__pycache__/,
# The following issues are ignored because they do not match our code style:
ignore =

View File

@ -7,7 +7,7 @@ commands = python -m unittest discover --start-directory ./tests
[testenv:flake8]
deps =
flake8
flake8 >= 3.8.0
flake8-bugbear
flake8-tabs
commands = flake8