mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 19:26:52 +00:00
treat --extend-exclude as a file list
This commit is contained in:
parent
d95f9cf0fe
commit
31c2f9f366
2 changed files with 2 additions and 1 deletions
|
|
@ -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.",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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 = '''\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue