Fix debug statement hook

This commit is contained in:
Anthony Sottile 2014-03-14 14:51:42 -07:00
parent 4fc86a807b
commit 10c042c99c
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ def check_file_for_debug_statements(filename):
def debug_statement_hook(argv):
parser = argparse.ArgumentParser()
parser.add_argument('filenames', nargs='+', help='Filenames to run')
parser.add_argument('filenames', nargs='*', help='Filenames to run')
args = parser.parse_args()
retv = 0

View File

@ -2,8 +2,8 @@
import ast
import pytest
from pre_commit_hooks.debug_statement_hook import ImportStatementParser, \
DebugStatement
from pre_commit_hooks.debug_statement_hook import DebugStatement
from pre_commit_hooks.debug_statement_hook import ImportStatementParser
@pytest.fixture