mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 13:36:54 +00:00
Fixed hg hook.
This commit is contained in:
parent
81f2946789
commit
dcc311be76
1 changed files with 5 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ Implementation of the command-line I{flake8} tool.
|
||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import os.path
|
||||||
|
|
||||||
from flake8.util import skip_file
|
from flake8.util import skip_file
|
||||||
from flake8 import pep8
|
from flake8 import pep8
|
||||||
|
|
@ -57,6 +58,7 @@ def _get_files(repo, **kwargs):
|
||||||
seen = set()
|
seen = set()
|
||||||
for rev in xrange(repo[kwargs['node']], len(repo)):
|
for rev in xrange(repo[kwargs['node']], len(repo)):
|
||||||
for file_ in repo[rev].files():
|
for file_ in repo[rev].files():
|
||||||
|
file_ = os.path.join(repo.root, file_)
|
||||||
if file_ in seen:
|
if file_ in seen:
|
||||||
continue
|
continue
|
||||||
seen.add(file_)
|
seen.add(file_)
|
||||||
|
|
@ -70,8 +72,9 @@ def _get_files(repo, **kwargs):
|
||||||
class _PEP8Options(object):
|
class _PEP8Options(object):
|
||||||
exclude = select = []
|
exclude = select = []
|
||||||
show_pep8 = show_source = quiet = verbose = testsuite = False
|
show_pep8 = show_source = quiet = verbose = testsuite = False
|
||||||
repeat = True
|
no_repeat = False
|
||||||
messages = counters = {}
|
counters = {}
|
||||||
|
messages = {}
|
||||||
ignore = pep8.DEFAULT_IGNORE
|
ignore = pep8.DEFAULT_IGNORE
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue