Skip to content

Commit db3b44e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5ed90ea commit db3b44e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pre_commit_hooks/debug_statement_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def visit_Call(self, node: ast.Call) -> None:
4848
if isinstance(node.args[0], ast.Constant) and node.args[0].value in DEBUG_STATEMENTS:
4949
st = Debug(node.lineno, node.col_offset, node.args[0].value, 'imported')
5050
self.breakpoints.append(st)
51-
51+
5252
"""python3.7+ breakpoint()"""
5353
if isinstance(node.func, ast.Name) and node.func.id == 'breakpoint':
5454
st = Debug(node.lineno, node.col_offset, node.func.id, 'called')

tests/debug_statement_hook_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def test_finds_debug_import_from_import():
3939
'q',
4040
'rdb',
4141
'rpdb',
42-
'wdb'
43-
)
42+
'wdb',
43+
),
4444
)
4545
def test_finds_debug_import_when_using_dunder_import(debugger_module):
4646
visitor = DebugStatementParser()

0 commit comments

Comments
 (0)