Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
38
def
resource_text(filename: str) -> str:
39
files = importlib.resources.files(
'pre_commit.resources'
)
40
return
files.joinpath(filename).read_text()
41
42
43
def
make_executable(filename: str) -> None:
Callers
4
_make_local_repo
Function · 0.90
_install_hook_script
Function · 0.90
renv_folder
Function · 0.90
test_replace_old_commit_script
Function · 0.90
Calls
no outgoing calls
Tested by
2
renv_folder
Function · 0.72
test_replace_old_commit_script
Function · 0.72