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

Function health_check

pre_commit/languages/node.py:68–74  ·  view source on GitHub ↗
(prefix: Prefix, version: str)

Source from the content-addressed store, hash-verified

66
67
68def health_check(prefix: Prefix, version: str) -> str | None:
69 with in_env(prefix, version):
70 retcode, _, _ = cmd_output_b('node', '--version', check=False)
71 if retcode != 0: # pragma: win32 no cover
72 return f'`node --version` returned {retcode}'
73 else:
74 return None
75
76
77def install_environment(

Callers

nothing calls this directly

Calls 2

cmd_output_bFunction · 0.90
in_envFunction · 0.70

Tested by

no test coverage detected