mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 20:26: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
|
|
@ -87,9 +87,8 @@ Attempts to load all yaml files to verify syntax.
|
|||
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.
|
||||
Duplicate keys in yaml files are not allowed by default.
|
||||
However, e.g. gitlab-ci.yml files may require this.
|
||||
|
||||
#### `debug-statements`
|
||||
Check for debugger imports and py37+ `breakpoint()` calls in python source.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue