mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Implement pre-commit init-templatedir
This commit is contained in:
parent
3def940574
commit
9a52eefc99
7 changed files with 114 additions and 9 deletions
|
|
@ -735,7 +735,7 @@ def test_install_disallow_missing_config(tempdir_factory, store):
|
|||
with cwd(path):
|
||||
remove_config_from_repo(path)
|
||||
ret = install(
|
||||
C.CONFIG_FILE, store, overwrite=True, skip_on_missing_conf=False,
|
||||
C.CONFIG_FILE, store, overwrite=True, skip_on_missing_config=False,
|
||||
)
|
||||
assert ret == 0
|
||||
|
||||
|
|
@ -748,7 +748,7 @@ def test_install_allow_missing_config(tempdir_factory, store):
|
|||
with cwd(path):
|
||||
remove_config_from_repo(path)
|
||||
ret = install(
|
||||
C.CONFIG_FILE, store, overwrite=True, skip_on_missing_conf=True,
|
||||
C.CONFIG_FILE, store, overwrite=True, skip_on_missing_config=True,
|
||||
)
|
||||
assert ret == 0
|
||||
|
||||
|
|
@ -766,7 +766,7 @@ def test_install_temporarily_allow_mising_config(tempdir_factory, store):
|
|||
with cwd(path):
|
||||
remove_config_from_repo(path)
|
||||
ret = install(
|
||||
C.CONFIG_FILE, store, overwrite=True, skip_on_missing_conf=False,
|
||||
C.CONFIG_FILE, store, overwrite=True, skip_on_missing_config=False,
|
||||
)
|
||||
assert ret == 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue