mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
add check-yaml-sorted script and tests
This commit is contained in:
parent
6306a48f7d
commit
5b166227c9
5 changed files with 165 additions and 0 deletions
|
|
@ -87,6 +87,11 @@ Attempts to load all yaml files to verify syntax.
|
|||
portability to other yaml implementations.
|
||||
Implies `--allow-multiple-documents`.
|
||||
|
||||
#### `check-yaml-sorted`
|
||||
Checks that top-level items in yaml files are sorted. This is done on the
|
||||
stringified representation, which means it can handle lists of scalars, lists
|
||||
of dicts by first key or val, etc.
|
||||
|
||||
#### `debug-statements`
|
||||
Check for debugger imports and py37+ `breakpoint()` calls in python source.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue