add check-yaml-sorted script and tests

This commit is contained in:
Ryan Downing 2023-11-19 22:10:56 -05:00
parent 6306a48f7d
commit 5b166227c9
5 changed files with 165 additions and 0 deletions

View file

@ -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.