mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Added fix end of file hook.
This commit is contained in:
parent
8c30419c13
commit
dc1494d0e7
13 changed files with 15 additions and 16 deletions
|
|
@ -69,4 +69,4 @@ def test_raises_when_additional_validation_fails(additional_validator):
|
|||
|
||||
def test_returns_object_after_validating(noop_validator):
|
||||
ret = noop_validator('tests/data/array_yaml_file.yaml')
|
||||
assert ret == ['foo', 'bar']
|
||||
assert ret == ['foo', 'bar']
|
||||
|
|
|
|||
|
|
@ -59,4 +59,4 @@ def is_valid_according_to_schema(obj, schema):
|
|||
))
|
||||
def test_is_valid_according_to_schema(manifest_obj, expected):
|
||||
ret = is_valid_according_to_schema(manifest_obj, MANIFEST_JSON_SCHEMA)
|
||||
assert ret is expected
|
||||
assert ret is expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue