diff --git a/flake8/run.py b/flake8/run.py index f0f5012..663bd4a 100644 --- a/flake8/run.py +++ b/flake8/run.py @@ -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