Merge branch 'detects-print-as-debug-statement' of github.com:AadityaSubedi/pre-commit-hooks into detects-print-as-debug-statement

This commit is contained in:
Aaditya Subedi 2025-11-19 13:08:12 +05:45
commit 4e26f3a9ea

View file

@ -30,9 +30,9 @@ def test_finds_breakpoint():
visitor = DebugStatementParser()
visitor.visit(ast.parse('breakpoint()'))
assert visitor.breakpoints == [Debug(1, 0, 'breakpoint', 'called')]
def test_finds_print():
def test_finds_print():
visitor = DebugStatementParser()
visitor.visit(ast.parse('print()'))
assert visitor.breakpoints == [Debug(1, 0, 'print', 'called')]