Displaying the filename when the check-json hook fails with a Unicode… · precommit/pre-commit-hooks@54e83f7 · GitHub
Skip to content

Commit 54e83f7

Browse files
committed
Displaying the filename when the check-json hook fails with a UnicodeDecodeError - fix pre-commit#148
1 parent 4ef03c4 commit 54e83f7

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

pre_commit_hooks/check_json.py

Lines changed: 1 addition & 1 deletion
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"�": 1,
3+
}

tests/check_json_test.py

Lines changed: 5 additions & 1 deletion

0 commit comments

Comments
 (0)