Merge branch 'extend_exclude_is_files' into 'master'

treat --extend-exclude as a file list

Closes #653

See merge request pycqa/flake8!432
This commit is contained in:
Anthony Sottile 2020-05-21 23:44:49 +00:00
commit b9fe4d601c
2 changed files with 2 additions and 1 deletions

View file

@ -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.",
)

View file

@ -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 = '''\