From bc9c6ff1f9e84c71e09a9ccdbaf472daf0ad2847 Mon Sep 17 00:00:00 2001 From: Michael McNeil Forbes Date: Sun, 11 Dec 2016 16:12:21 -0800 Subject: [PATCH] Potential fix for issue #8 Ignore options are properly loaded from ``setup.cfg`` but then overwritten. Here we simply extend this list. --- pytest_flake8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_flake8.py b/pytest_flake8.py index b5789ac..8c3166b 100644 --- a/pytest_flake8.py +++ b/pytest_flake8.py @@ -180,7 +180,7 @@ def check_file(path, flake8ignore, maxlength, maxcomplexity, app.find_plugins() app.register_plugin_options() app.parse_configuration_and_cli(args) - app.options.ignore = flake8ignore + app.options.ignore.extend(flake8ignore) app.make_formatter() # fix this app.make_notifier() app.make_guide()