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

Function resource_text

pre_commit/util.py:38–40  ·  view source on GitHub ↗
(filename: str)

Source from the content-addressed store, hash-verified

36
37
38def resource_text(filename: str) -> str:
39 files = importlib.resources.files('pre_commit.resources')
40 return files.joinpath(filename).read_text()
41
42
43def make_executable(filename: str) -> None:

Callers 4

_make_local_repoFunction · 0.90
_install_hook_scriptFunction · 0.90
renv_folderFunction · 0.90

Calls

no outgoing calls

Tested by 2

renv_folderFunction · 0.72