mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 12:06:53 +00:00
fix: check-yml encoding error
manage encoding error
This commit is contained in:
parent
6db05e22aa
commit
58049eb8c8
3 changed files with 11 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ from testing.util import get_resource_path
|
|||
@pytest.mark.parametrize(
|
||||
('filename', 'expected_retval'), (
|
||||
('bad_yaml.notyaml', 1),
|
||||
('bad_encoding_yaml.yaml', 1),
|
||||
('ok_yaml.yaml', 0),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue