Fix specify config file not work while installing

Via `pre-commit install -c .other-config.yaml`
This commit is contained in:
wanghui 2017-09-05 16:22:33 +08:00
parent 8b14c6c5ae
commit f9a849abcc
No known key found for this signature in database
GPG key ID: 9DD1E28DBFC06C26
5 changed files with 11 additions and 8 deletions

View file

@ -71,6 +71,7 @@ def install(
sys_executable=sys.executable,
hook_type=hook_type,
hook_specific=hook_specific_contents,
config_file=runner.config_file,
skip_on_missing_conf=skip_on_missing_conf,
)
pre_commit_file_obj.write(contents)