From 5456013bf4211c5d26137c127922b4be0e3b39e4 Mon Sep 17 00:00:00 2001 From: dgelessus Date: Sat, 18 Jul 2020 13:40:15 +0200 Subject: [PATCH] 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. --- setup.cfg | 7 +------ tox.ini | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/setup.cfg b/setup.cfg index 040af66..a72c46b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 = diff --git a/tox.ini b/tox.ini index dafe718..b781c15 100644 --- a/tox.ini +++ b/tox.ini @@ -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