Fix debug statement hook
This commit is contained in:
parent
4fc86a807b
commit
10c042c99c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue