mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Implement default_language_version
This commit is contained in:
parent
579b05e424
commit
d3b5a41830
23 changed files with 150 additions and 103 deletions
|
|
@ -110,10 +110,10 @@ def test_gc_config_with_missing_hook(
|
|||
path = make_repo(tempdir_factory, 'script_hooks_repo')
|
||||
write_config('.', make_config_from_repo(path))
|
||||
store.mark_config_used(C.CONFIG_FILE)
|
||||
# to trigger a clone
|
||||
all_hooks(load_config(C.CONFIG_FILE), store)
|
||||
|
||||
with modify_config() as config:
|
||||
# just to trigger a clone
|
||||
all_hooks(config, store)
|
||||
# add a hook which does not exist, make sure we don't crash
|
||||
config['repos'][0]['hooks'].append({'id': 'does-not-exist'})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue