mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 12:36:54 +00:00
Respect exclude option from pep8 - fixes #23
Modify the util.skip_file() method to honor the pep8 exclude option from .pep8 config file or from the command line.
This commit is contained in:
parent
110099b355
commit
56ba00ea2e
2 changed files with 5 additions and 5 deletions
|
|
@ -44,11 +44,11 @@ def _get_python_files(paths):
|
|||
if not filename.endswith('.py'):
|
||||
continue
|
||||
fullpath = os.path.join(dirpath, filename)
|
||||
if not skip_file(fullpath):
|
||||
if not skip_file(fullpath, pep8style):
|
||||
yield fullpath
|
||||
|
||||
else:
|
||||
if not skip_file(path):
|
||||
if not skip_file(path, pep8style):
|
||||
yield path
|
||||
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ def _get_files(repo, **kwargs):
|
|||
seen.add(file_)
|
||||
if not file_.endswith('.py'):
|
||||
continue
|
||||
if skip_file(file_):
|
||||
if skip_file(file_, pep8style):
|
||||
continue
|
||||
yield file_
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue