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

Function _prefix_if_file_entry

pre_commit/languages/r.py:137–146  ·  view source on GitHub ↗
(
        entry: list[str],
        prefix: Prefix,
        *,
        is_local: bool,
)

Source from the content-addressed store, hash-verified

135
136
137def _prefix_if_file_entry(
138 entry: list[str],
139 prefix: Prefix,
140 *,
141 is_local: bool,
142) -> Sequence[str]:
143 if entry[1] == '-e' or is_local:
144 return entry[1:]
145 else:
146 return (prefix.path(entry[1]),)
147
148
149def _rscript_exec() -> str:

Callers 1

_cmd_from_hookFunction · 0.85

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected