MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / run_hook

Function run_hook

pre_commit/languages/r.py:262–278  ·  view source on GitHub ↗
(
        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

260
261
262def run_hook(
263 prefix: Prefix,
264 entry: str,
265 args: Sequence[str],
266 file_args: Sequence[str],
267 *,
268 is_local: bool,
269 require_serial: bool,
270 color: bool,
271) -> tuple[int, bytes]:
272 cmd = _cmd_from_hook(prefix, entry, args, is_local=is_local)
273 return lang_base.run_xargs(
274 cmd,
275 file_args,
276 require_serial=require_serial,
277 color=color,
278 )

Callers

nothing calls this directly

Calls 1

_cmd_from_hookFunction · 0.85

Tested by

no test coverage detected