mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +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
|
|
@ -21,9 +21,10 @@ MANIFEST_JSON_SCHEMA = {
|
|||
'entry': {'type': 'string'},
|
||||
'language': {'type': 'string'},
|
||||
'language_version': {'type': 'string', 'default': 'default'},
|
||||
'files': {'type': 'string'},
|
||||
'expected_return_value': {'type': 'number', 'default': 0},
|
||||
},
|
||||
'required': ['id', 'name', 'entry', 'language'],
|
||||
'required': ['id', 'name', 'entry', 'language', 'files'],
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue