mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 11:16:53 +00:00
Add check-yaml-filename-extension hook
This commit is contained in:
parent
5420c705a4
commit
1ea1ff2061
5 changed files with 66 additions and 0 deletions
|
|
@ -88,6 +88,10 @@ Attempts to load all yaml files to verify syntax.
|
|||
portability to other yaml implementations.
|
||||
Implies `--allow-multiple-documents`.
|
||||
|
||||
#### `check-yaml-filename-extension`
|
||||
Ensures that yaml file names ends with a specified extension.
|
||||
- `--extension` - Specifies which extension to use `yaml` or `yml`. Defaults to `yaml`.
|
||||
|
||||
#### `debug-statements`
|
||||
Check for debugger imports and py37+ `breakpoint()` calls in python source.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue