MCPcopy
hub / github.com/pyodide/pyodide / run

Function run

tools/bump_version.py:256–264  ·  view source on GitHub ↗
(
    args: list[str | pathlib.Path], check: bool = True, echo=False, **kwargs: Any
)

Source from the content-addressed store, hash-verified

254
255
256def run(
257 args: list[str | pathlib.Path], check: bool = True, echo=False, **kwargs: Any
258) -> subprocess.CompletedProcess[Any]:
259 if echo:
260 print(" ".join(str(x) for x in args))
261 result = subprocess.run(args, check=False, text=True, **kwargs)
262 if check and result.returncode:
263 sys.exit(result.returncode)
264 return result
265
266
267def check_clean_working_tree():

Callers 3

check_clean_working_treeFunction · 0.70
commitFunction · 0.70
tagFunction · 0.70

Calls 2

joinMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected