mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Ignore directories that match exclusion patterns.
This commit is contained in:
parent
56ba00ea2e
commit
a53880364c
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ def _get_python_files(paths):
|
|||
for path in paths:
|
||||
if os.path.isdir(path):
|
||||
for dirpath, dirnames, filenames in os.walk(path):
|
||||
if pep8style.excluded(dirpath):
|
||||
continue
|
||||
for filename in filenames:
|
||||
if not filename.endswith('.py'):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue