Skip to content

Commit 51e0c84

Browse files
committed
flake8 line too long error addressed
1 parent 7c3f665 commit 51e0c84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pre_commit_hooks/debug_statement_hook.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
DEBUG_CALL_STATEMENTS = {
2424
'breakpoint',
25-
'print'
25+
'print',
2626
}
2727

2828

@@ -50,7 +50,10 @@ def visit_ImportFrom(self, node: ast.ImportFrom) -> None:
5050

5151
def visit_Call(self, node: ast.Call) -> None:
5252
"""python3.7+ breakpoint()"""
53-
if isinstance(node.func, ast.Name) and node.func.id in DEBUG_CALL_STATEMENTS:
53+
if (
54+
isinstance(node.func, ast.Name) and
55+
node.func.id in DEBUG_CALL_STATEMENTS
56+
):
5457
st = Debug(node.lineno, node.col_offset, node.func.id, 'called')
5558
self.breakpoints.append(st)
5659
self.generic_visit(node)

0 commit comments

Comments
 (0)