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

Function _do_run

tests/commands/run_test.py:138–142  ·  view source on GitHub ↗
(cap_out, store, repo, args, environ={}, config_file=C.CONFIG_FILE)

Source from the content-addressed store, hash-verified

136
137
138def _do_run(cap_out, store, repo, args, environ={}, config_file=C.CONFIG_FILE):
139 with cwd(repo): # replicates `main._adjust_args_and_chdir` behaviour
140 ret = run(config_file, store, args, environ=environ)
141 printed = cap_out.get_bytes()
142 return ret, printed
143
144
145def _test_run(

Callers 15

_test_runFunction · 0.85
test_global_excludeFunction · 0.85
test_global_filesFunction · 0.85
test_verbose_durationFunction · 0.85
test_all_push_options_okFunction · 0.85
test_is_squash_mergeFunction · 0.85
test_rewrite_commandFunction · 0.85
test_checkout_typeFunction · 0.85

Calls 3

cwdFunction · 0.90
runFunction · 0.90
get_bytesMethod · 0.80

Tested by

no test coverage detected