mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 05:54:17 +00:00
Restore the whole-file-skip feature
This commit is contained in:
parent
fa092c0294
commit
7362d57c24
3 changed files with 23 additions and 22 deletions
|
|
@ -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_
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue