Skip to content

Commit

Permalink
Use flake8 extend-exclude setting instead of exclude
Browse files Browse the repository at this point in the history
This setting was added in flake8 3.8.0 and allows adding entries to the
exclude list without also removing the default entries.
  • Loading branch information
dgelessus committed Jul 18, 2020
1 parent b595456 commit 5456013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5456013

Please sign in to comment.