Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit-hooks
/ get_resource_path
Function
get_resource_path
testing/util.py:10–11 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
8
9
10
def
get_resource_path(path):
11
return
os.path.join(TESTING_DIR,
'resources'
, path)
12
13
14
def
git_commit(*args, **kwargs):
Callers
15
test_main
Function · 0.90
test_syntaxerror_file
Function · 0.90
test_ignores_binary_files
Function · 0.90
test_main
Function · 0.90
test_get_aws_secrets_from_file
Function · 0.90
test_detect_aws_credentials
Function · 0.90
test_non_existent_credentials
Function · 0.90
test_non_existent_credentials_with_allow_flag
Function · 0.90
test_main
Function · 0.90
test_unsorted_main
Function · 0.90
test_tab_main
Function · 0.90
test_non_ascii_main
Function · 0.90
Calls
no outgoing calls
Tested by
15
test_main
Function · 0.72
test_syntaxerror_file
Function · 0.72
test_ignores_binary_files
Function · 0.72
test_main
Function · 0.72
test_get_aws_secrets_from_file
Function · 0.72
test_detect_aws_credentials
Function · 0.72
test_non_existent_credentials
Function · 0.72
test_non_existent_credentials_with_allow_flag
Function · 0.72
test_main
Function · 0.72
test_unsorted_main
Function · 0.72
test_tab_main
Function · 0.72
test_non_ascii_main
Function · 0.72