Restore the whole-file-skip feature

This commit is contained in:
Florent Xicluna 2013-02-20 21:14:13 +01:00
parent fa092c0294
commit 7362d57c24
3 changed files with 23 additions and 22 deletions

View file

@ -10,7 +10,6 @@ except ImportError: # Python 2
from flake8.engine import get_parser, get_style_guide
from flake8.main import DEFAULT_CONFIG
from flake8.util import skip_file
def git_hook(complexity=-1, strict=False, ignore=None, lazy=False):
@ -64,7 +63,7 @@ def _get_files(repo, **kwargs):
if file_ in seen or not os.path.exists(file_):
continue
seen.add(file_)
if file_.endswith('.py') and not skip_file(file_):
if file_.endswith('.py'):
yield file_