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

Function aliased_repo

tests/commands/run_test.py:122–130  ·  view source on GitHub ↗
(tempdir_factory)

Source from the content-addressed store, hash-verified

120
121@pytest.fixture
122def aliased_repo(tempdir_factory):
123 git_path = make_consuming_repo(tempdir_factory, 'script_hooks_repo')
124 with cwd(git_path):
125 with modify_config() as config:
126 config['repos'][0]['hooks'].append(
127 {'id': 'bash_hook', 'alias': 'foo_bash'},
128 )
129 stage_a_file()
130 yield git_path
131
132
133def stage_a_file(filename='foo.py'):

Callers

nothing calls this directly

Calls 4

make_consuming_repoFunction · 0.90
cwdFunction · 0.90
modify_configFunction · 0.90
stage_a_fileFunction · 0.85

Tested by

no test coverage detected