From a53880364c270ccff8dbb751365b3f40c9dfe70e Mon Sep 17 00:00:00 2001 From: Kilian Koepsell Date: Sat, 10 Nov 2012 01:21:45 -0800 Subject: [PATCH] Ignore directories that match exclusion patterns. --- flake8/run.py | 2 ++ 1 file changed, 2 insertions(+) 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