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

Function _install

pre_commit/languages/coursier.py:40–43  ·  view source on GitHub ↗
(*opts: str)

Source from the content-addressed store, hash-verified

38 envdir = lang_base.environment_dir(prefix, ENVIRONMENT_DIR, version)
39
40 def _install(*opts: str) -> None:
41 assert cs is not None
42 lang_base.setup_cmd(prefix, (cs, 'fetch', *opts))
43 lang_base.setup_cmd(prefix, (cs, 'install', '--dir', envdir, *opts))
44
45 with in_env(prefix, version):
46 channel = prefix.path('.pre-commit-channel')

Callers 1

install_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected