mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 15:24:18 +00:00
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:
commit
b9fe4d601c
2 changed files with 2 additions and 1 deletions
|
|
@ -156,6 +156,7 @@ def register_default_options(option_manager):
|
||||||
default="",
|
default="",
|
||||||
parse_from_config=True,
|
parse_from_config=True,
|
||||||
comma_separated_list=True,
|
comma_separated_list=True,
|
||||||
|
normalize_paths=True,
|
||||||
help="Comma-separated list of files or directories to add to the list"
|
help="Comma-separated list of files or directories to add to the list"
|
||||||
" of excluded ones.",
|
" 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')
|
tmpdir.mkdir(d).join('t.py').write('import os\nimport sys\n')
|
||||||
|
|
||||||
with tmpdir.as_cwd():
|
with tmpdir.as_cwd():
|
||||||
_call_main(['--extend-exclude=vendor,legacy'], retv=1)
|
_call_main(['--extend-exclude=vendor,legacy/'], retv=1)
|
||||||
|
|
||||||
out, err = capsys.readouterr()
|
out, err = capsys.readouterr()
|
||||||
expected_out = '''\
|
expected_out = '''\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue