mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 15:24:18 +00:00
When run as a setuptools command, the previous fix breaks flake8
This commit is contained in:
parent
25c4f52afa
commit
69ed788443
1 changed files with 6 additions and 0 deletions
|
|
@ -91,6 +91,12 @@ def get_style_guide(**kwargs):
|
||||||
kwargs['parser'], options_hooks = get_parser()
|
kwargs['parser'], options_hooks = get_parser()
|
||||||
styleguide = StyleGuide(**kwargs)
|
styleguide = StyleGuide(**kwargs)
|
||||||
options = styleguide.options
|
options = styleguide.options
|
||||||
|
|
||||||
|
if options.exclude and not isinstance(options.exclude, list):
|
||||||
|
options.exclude = pep8.normalize_paths(options.exclude)
|
||||||
|
else:
|
||||||
|
options.exclude = []
|
||||||
|
|
||||||
# Add pattersn in EXTRA_EXCLUDE to the list of excluded patterns
|
# Add pattersn in EXTRA_EXCLUDE to the list of excluded patterns
|
||||||
options.exclude.extend(pep8.normalize_paths(EXTRA_EXCLUDE))
|
options.exclude.extend(pep8.normalize_paths(EXTRA_EXCLUDE))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue