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

Function _make_hello_hello

tests/languages/python_test.py:307–328  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

305
306
307def _make_hello_hello(tmp_path):
308 setup_py = '''\
309from setuptools import setup
310
311setup(
312 name='socks',
313 version='0.0.0',
314 py_modules=['socks'],
315 entry_points={'console_scripts': ['socks = socks:main']},
316)
317'''
318
319 main_py = '''\
320import sys
321
322def main():
323 print(repr(sys.argv[1:]))
324 print('hello hello')
325 return 0
326'''
327 tmp_path.joinpath('setup.py').write_text(setup_py)
328 tmp_path.joinpath('socks.py').write_text(main_py)
329
330
331def test_simple_python_hook(tmp_path):

Callers 2

test_simple_python_hookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected