mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
forbid overriding entry for meta hooks
This commit is contained in:
parent
16f68254a8
commit
d3b4f737b9
2 changed files with 16 additions and 0 deletions
|
|
@ -423,6 +423,13 @@ def test_migrate_to_sha_ok():
|
|||
{'repo': 'meta', 'hooks': [{'id': 'identity', 'language': 'python'}]},
|
||||
# name override must be string
|
||||
{'repo': 'meta', 'hooks': [{'id': 'identity', 'name': False}]},
|
||||
pytest.param(
|
||||
{
|
||||
'repo': 'meta',
|
||||
'hooks': [{'id': 'identity', 'entry': 'echo hi'}],
|
||||
},
|
||||
id='cannot override entry for meta hooks',
|
||||
),
|
||||
),
|
||||
)
|
||||
def test_meta_hook_invalid(config_repo):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue