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

Function run

tools/backport.py:42–50  ·  view source on GitHub ↗
(
    args: list[str | Path], check: bool = True, **kwargs: Any
)

Source from the content-addressed store, hash-verified

40
41
42def run(
43 args: list[str | Path], check: bool = True, **kwargs: Any
44) -> subprocess.CompletedProcess[Any]:
45 result = subprocess.run(args, check=False, text=True, **kwargs)
46 if check and result.returncode:
47 print(f"Command failed with exit status {result.returncode}")
48 print("Command was:", " ".join(str(x) for x in args))
49 sys.exit(result.returncode)
50 return result
51
52
53@functools.cache

Callers 15

from_gitMethod · 0.70
branch_existsFunction · 0.70
update_old_branchFunction · 0.70
force_branch_updateFunction · 0.70
diff_old_new_branchFunction · 0.70
last_tag_tupleFunction · 0.70
add_backport_prFunction · 0.70
clear_backport_prsFunction · 0.70
view_prsFunction · 0.70
show_not_backportedFunction · 0.70
make_changelog_branchFunction · 0.70

Calls 2

joinMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected