mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-02 02:56:52 +00:00
Fix debug statement hook
This commit is contained in:
parent
4fc86a807b
commit
10c042c99c
2 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue