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

Function local_python_config

tests/repository_test.py:342–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340
341@pytest.fixture
342def local_python_config():
343 # Make a "local" hooks repo that just installs our other hooks repo
344 repo_path = get_resource_path('python_hooks_repo')
345 manifest = load_manifest(os.path.join(repo_path, C.MANIFEST_FILE))
346 hooks = [
347 dict(hook, additional_dependencies=[repo_path]) for hook in manifest
348 ]
349 return {'repo': 'local', 'hooks': hooks}
350
351
352def test_local_python_repo(store, local_python_config):

Callers

nothing calls this directly

Calls 1

get_resource_pathFunction · 0.90

Tested by

no test coverage detected