mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
flake8 line too long error addressed
This commit is contained in:
parent
7c3f665ba8
commit
51e0c84107
1 changed files with 5 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ DEBUG_STATEMENTS = {
|
|||
|
||||
DEBUG_CALL_STATEMENTS = {
|
||||
'breakpoint',
|
||||
'print'
|
||||
'print',
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -50,7 +50,10 @@ class DebugStatementParser(ast.NodeVisitor):
|
|||
|
||||
def visit_Call(self, node: ast.Call) -> None:
|
||||
"""python3.7+ breakpoint()"""
|
||||
if isinstance(node.func, ast.Name) and node.func.id in DEBUG_CALL_STATEMENTS:
|
||||
if (
|
||||
isinstance(node.func, ast.Name) and
|
||||
node.func.id in DEBUG_CALL_STATEMENTS
|
||||
):
|
||||
st = Debug(node.lineno, node.col_offset, node.func.id, 'called')
|
||||
self.breakpoints.append(st)
|
||||
self.generic_visit(node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue