mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Minor fixups
This commit is contained in:
parent
478b0c70d8
commit
dbd131f646
4 changed files with 22 additions and 18 deletions
|
|
@ -39,7 +39,7 @@ def is_previous_pre_commit(filename):
|
|||
|
||||
def install(
|
||||
runner, overwrite=False, hooks=False, hook_type='pre-commit',
|
||||
skip_on_missing_conf=False
|
||||
skip_on_missing_conf=False,
|
||||
):
|
||||
"""Install the pre-commit hooks."""
|
||||
hook_path = runner.get_hook_path(hook_type)
|
||||
|
|
@ -78,7 +78,7 @@ def install(
|
|||
sys_executable=sys.executable,
|
||||
hook_type=hook_type,
|
||||
pre_push=pre_push_contents,
|
||||
skip_on_missing_conf=skip_on_missing_conf
|
||||
skip_on_missing_conf=skip_on_missing_conf,
|
||||
)
|
||||
pre_commit_file_obj.write(contents)
|
||||
make_executable(hook_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue