MCPcopy
hub / github.com/pre-commit/pre-commit / run_hook

Method run_hook

pre_commit/lang_base.py:49–60  ·  view source on GitHub ↗
(
            self,
            prefix: Prefix,
            entry: str,
            args: Sequence[str],
            file_args: Sequence[str],
            *,
            is_local: bool,
            require_serial: bool,
            color: bool,
    )

Source from the content-addressed store, hash-verified

47
48 # execute a hook and return the exit code and output
49 def run_hook(
50 self,
51 prefix: Prefix,
52 entry: str,
53 args: Sequence[str],
54 file_args: Sequence[str],
55 *,
56 is_local: bool,
57 require_serial: bool,
58 color: bool,
59 ) -> tuple[int, bytes]:
60 ...
61
62
63def exe_exists(exe: str) -> bool:

Callers 2

_run_single_hookFunction · 0.80
run_languageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected