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

Function _error

pre_commit/parse_shebang.py:47–48  ·  view source on GitHub ↗
(msg: str)

Source from the content-addressed store, hash-verified

45
46def normexe(orig: str, *, env: Mapping[str, str] | None = None) -> str:
47 def _error(msg: str) -> NoReturn:
48 raise ExecutableNotFoundError(f'Executable `{orig}` {msg}')
49
50 if os.sep not in orig and (not os.altsep or os.altsep not in orig):
51 exe = find_executable(orig, env=env)

Callers 1

normexeFunction · 0.85

Calls 1

Tested by

no test coverage detected