mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Make hooks specify files. Optionally allow config to override manifest.
This commit is contained in:
parent
0ec9020346
commit
96174deac6
25 changed files with 81 additions and 50 deletions
12
hooks.yaml
12
hooks.yaml
|
|
@ -1,10 +1,12 @@
|
|||
- id: validate_manifest
|
||||
name: Validate Pre-Commit Manifest
|
||||
description: This validator validates a pre-commit hooks manifest file
|
||||
entry: validate-manifest
|
||||
language: python
|
||||
- id: validate_config
|
||||
name: Validate Pre-Commit Config
|
||||
description: This validator validates a pre-commit hooks config file
|
||||
entry: validate-config
|
||||
language: python
|
||||
files: ^\.pre-commit-config.yaml$
|
||||
- id: validate_manifest
|
||||
name: Validate Pre-Commit Manifest
|
||||
description: This validator validates a pre-commit hooks manifest file
|
||||
entry: validate-manifest
|
||||
language: python
|
||||
files: ^hooks.yaml$
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue