mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
adjust error outputs to be more standardized
This commit is contained in:
parent
48c60be15b
commit
b13ff9b868
6 changed files with 22 additions and 13 deletions
|
|
@ -65,7 +65,7 @@ def check_file(filename: str) -> int:
|
|||
visitor.visit(ast_obj)
|
||||
|
||||
for bp in visitor.breakpoints:
|
||||
print(f'{filename}:{bp.line}:{bp.col} - {bp.name} {bp.reason}')
|
||||
print(f'{filename}:{bp.line}:{bp.col}: {bp.name} {bp.reason}')
|
||||
|
||||
return int(bool(visitor.breakpoints))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue