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

Function modified_config_repo

tests/commands/run_test.py:992–996  ·  view source on GitHub ↗
(repo_with_passing_hook)

Source from the content-addressed store, hash-verified

990
991@pytest.fixture
992def modified_config_repo(repo_with_passing_hook):
993 with modify_config(repo_with_passing_hook, commit=False) as config:
994 # Some minor modification
995 config['repos'][0]['hooks'][0]['files'] = ''
996 yield repo_with_passing_hook
997
998
999def test_error_with_unstaged_config(cap_out, store, modified_config_repo):

Callers

nothing calls this directly

Calls 1

modify_configFunction · 0.90

Tested by

no test coverage detected