MCPcopy
hub / github.com/pre-commit/pre-commit / _hook_run

Function _hook_run

tests/repository_test.py:34–46  ·  view source on GitHub ↗
(hook, filenames, color)

Source from the content-addressed store, hash-verified

32
33
34def _hook_run(hook, filenames, color):
35 return run_language(
36 path=hook.prefix.prefix_dir,
37 language=languages[hook.language],
38 exe=hook.entry,
39 args=hook.args,
40 file_args=filenames,
41 version=hook.language_version,
42 deps=hook.additional_dependencies,
43 is_local=hook.src == 'local',
44 require_serial=hook.require_serial,
45 color=color,
46 )
47
48
49def _get_hook_no_install(repo_config, store, hook_id):

Callers 5

_test_hook_repoFunction · 0.85
test_local_python_repoFunction · 0.85

Calls 1

run_languageFunction · 0.90

Tested by

no test coverage detected