2019-01-12 10:44:51 +00:00
|
|
|
""" poetry run func_name """
|
|
|
|
import shlex
|
|
|
|
import webbrowser
|
|
|
|
|
2023-12-01 07:52:18 +00:00
|
|
|
|
2019-01-12 10:44:51 +00:00
|
|
|
# Obtain path from package.dist-info/entry_points.txt
|
|
|
|
def run(path, arg_str):
|
|
|
|
module, func = path.split(":")
|
|
|
|
argv = shlex.split(arg_str)
|
|
|
|
exec(
|
|
|
|
f"""\
|
|
|
|
from {module} import {func}
|
|
|
|
{func}({argv})
|
|
|
|
"""
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2019-01-26 06:50:19 +00:00
|
|
|
"""
|
|
|
|
export MONKEYTYPE_TRACE_MODULES=corrscope
|
|
|
|
monkeytype run `which pytest`
|
|
|
|
// monkeytype run -m corrscope
|
|
|
|
monkeytype list-modules | xargs -I % -n 1 sh -c 'monkeytype apply % 2>&1 | tail -n4'
|
|
|
|
"""
|