mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix specify config file not work while installing
Via `pre-commit install -c .other-config.yaml`
This commit is contained in:
parent
8b14c6c5ae
commit
f9a849abcc
5 changed files with 11 additions and 8 deletions
|
|
@ -57,6 +57,7 @@ def test_install_pre_commit(tempdir_factory):
|
|||
sys_executable=sys.executable,
|
||||
hook_type='pre-commit',
|
||||
hook_specific='',
|
||||
config_file=runner.config_file,
|
||||
skip_on_missing_conf='false',
|
||||
)
|
||||
assert pre_commit_contents == expected_contents
|
||||
|
|
@ -72,6 +73,7 @@ def test_install_pre_commit(tempdir_factory):
|
|||
sys_executable=sys.executable,
|
||||
hook_type='pre-push',
|
||||
hook_specific=pre_push_template_contents,
|
||||
config_file=runner.config_file,
|
||||
skip_on_missing_conf='false',
|
||||
)
|
||||
assert pre_push_contents == expected_contents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue