Ignore directories that match exclusion patterns.

This commit is contained in:
Kilian Koepsell 2012-11-10 01:21:45 -08:00
parent 56ba00ea2e
commit a53880364c

View file

@ -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