mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Remove defaults from pre-commit config schema. Resolves #227
This commit is contained in:
parent
9515ca0637
commit
039a7a5878
5 changed files with 36 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ CONFIG_JSON_SCHEMA = {
|
|||
'properties': {
|
||||
'id': {'type': 'string'},
|
||||
'files': {'type': 'string'},
|
||||
'exclude': {'type': 'string', 'default': '^$'},
|
||||
'exclude': {'type': 'string'},
|
||||
'language_version': {'type': 'string'},
|
||||
'args': {
|
||||
'type': 'array',
|
||||
|
|
@ -71,7 +71,7 @@ def validate_config_extra(config):
|
|||
)
|
||||
for hook in repo['hooks']:
|
||||
try_regex(repo, hook['id'], hook.get('files', ''), 'files')
|
||||
try_regex(repo, hook['id'], hook['exclude'], 'exclude')
|
||||
try_regex(repo, hook['id'], hook.get('exclude', ''), 'exclude')
|
||||
|
||||
|
||||
load_config = get_validator(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue