mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
docs: concise explanation for check-yaml allow duplicate key feature.
This commit is contained in:
parent
aaa58f760c
commit
d788663a74
4 changed files with 11 additions and 10 deletions
|
|
@ -27,6 +27,7 @@ def test_main_allow_multiple_documents(tmpdir):
|
|||
# should pass when we allow multiple documents
|
||||
assert not main(('--allow-multiple-documents', str(f)))
|
||||
|
||||
|
||||
def test_main_allow_duplicate_keys(tmpdir):
|
||||
f = get_resource_path('duplicate_key_yaml.notyaml')
|
||||
# should fail by default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue