Skip to content

Commit

Permalink
Continues processing JSONs even if hook fails (fixes pre-commit#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
amarvin committed Apr 12, 2024
1 parent b73acb1 commit 38c5176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit_hooks/pretty_format_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def main(argv: Sequence[str] | None = None) -> int:
f'Input File {json_file} is not a valid JSON, consider using '
f'check-json',
)
return 1
status = 1

if contents != pretty_contents:
if args.autofix:
Expand Down

0 comments on commit 38c5176

Please sign in to comment.