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

Function python_dir

tests/languages/python_test.py:152–157  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

150
151@pytest.fixture
152def python_dir(tmpdir):
153 with tmpdir.as_cwd():
154 prefix = tmpdir.join('prefix').ensure_dir()
155 prefix.join('setup.py').write('import setuptools; setuptools.setup()')
156 prefix = Prefix(str(prefix))
157 yield prefix, tmpdir
158
159
160def test_healthy_default_creator(python_dir):

Callers

nothing calls this directly

Calls 1

PrefixClass · 0.90

Tested by

no test coverage detected