mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
docs: explain check-yaml feature that allows key duplicates.
This commit is contained in:
parent
85d6a678b4
commit
aaa58f760c
1 changed files with 4 additions and 0 deletions
|
|
@ -86,6 +86,10 @@ Attempts to load all yaml files to verify syntax.
|
|||
otherwise be forbidden. Using this option removes all guarantees of
|
||||
portability to other yaml implementations.
|
||||
Implies `--allow-multiple-documents`.
|
||||
- `--allow_duplicate_keys` - Use this parameter to allow duplicate keys in yaml files.
|
||||
In JSON mapping keys should be unique, in YAML they must be unique.
|
||||
PyYAML never enforced this although the YAML 1.1 specification already required this.
|
||||
Duplicate keys in mappings are no longer allowed by default.
|
||||
|
||||
#### `debug-statements`
|
||||
Check for debugger imports and py37+ `breakpoint()` calls in python source.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue