From 31c2f9f366f17e1fe7f638dd598dee67efe824b6 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 21 May 2020 16:41:02 -0700 Subject: [PATCH] treat --extend-exclude as a file list --- src/flake8/main/options.py | 1 + tests/integration/test_main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flake8/main/options.py b/src/flake8/main/options.py index f4588e8..a620ed9 100644 --- a/src/flake8/main/options.py +++ b/src/flake8/main/options.py @@ -156,6 +156,7 @@ def register_default_options(option_manager): default="", parse_from_config=True, comma_separated_list=True, + normalize_paths=True, help="Comma-separated list of files or directories to add to the list" " of excluded ones.", ) diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 54254ef..ab10bf9 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -114,7 +114,7 @@ def test_extend_exclude(tmpdir, capsys): tmpdir.mkdir(d).join('t.py').write('import os\nimport sys\n') with tmpdir.as_cwd(): - _call_main(['--extend-exclude=vendor,legacy'], retv=1) + _call_main(['--extend-exclude=vendor,legacy/'], retv=1) out, err = capsys.readouterr() expected_out = '''\