mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
implement default_install_hook_types
this implements a configurable fallback for the default value of `pre-commit install`
This commit is contained in:
parent
934afb85a4
commit
fd0177ae3a
7 changed files with 86 additions and 55 deletions
|
|
@ -2,7 +2,6 @@ from __future__ import annotations
|
|||
|
||||
import logging
|
||||
import os.path
|
||||
from typing import Sequence
|
||||
|
||||
from pre_commit.commands.install_uninstall import install
|
||||
from pre_commit.store import Store
|
||||
|
|
@ -16,7 +15,7 @@ def init_templatedir(
|
|||
config_file: str,
|
||||
store: Store,
|
||||
directory: str,
|
||||
hook_types: Sequence[str],
|
||||
hook_types: list[str] | None,
|
||||
skip_on_missing_config: bool = True,
|
||||
) -> int:
|
||||
install(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue