From 297a566b46b47a144edd620db5dad0531f65511e Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 6 Nov 2012 16:24:14 -0500 Subject: [PATCH] Incorporate @phd's patch. --- flake8/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake8/run.py b/flake8/run.py index 30944b5..3687251 100644 --- a/flake8/run.py +++ b/flake8/run.py @@ -21,6 +21,8 @@ pep8style = None def check_file(path, complexity=-1): + if pep8style.excluded(path): + return 0 warnings = pyflakes.checkPath(path) warnings += pep8style.input_file(path) if complexity > -1: