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

Function n1

pre_commit/commands/hazmat.py:65–71  ·  view source on GitHub ↗
(cmd: tuple[str, ...])

Source from the content-addressed store, hash-verified

63
64
65def n1(cmd: tuple[str, ...]) -> int:
66 cmd, filenames = _cmd_filenames(cmd)
67 cmd = normalize_cmd(cmd)
68 ret = 0
69 for filename in filenames:
70 ret |= subprocess.call((*cmd, filename))
71 return ret
72
73
74def impl(args: argparse.Namespace) -> int:

Callers 1

implFunction · 0.85

Calls 2

normalize_cmdFunction · 0.90
_cmd_filenamesFunction · 0.85

Tested by

no test coverage detected