MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / run

Function run

tools/trim_lines.py:27–36  ·  view source on GitHub ↗
(cmd: list[str], check: bool = True)

Source from the content-addressed store, hash-verified

25
26
27def run(cmd: list[str], check: bool = True) -> subprocess.CompletedProcess:
28 print("+", " ".join(cmd))
29 proc = subprocess.run(cmd, text=True, capture_output=True)
30 if proc.stdout:
31 print(proc.stdout)
32 if proc.stderr:
33 print(proc.stderr, file=sys.stderr)
34 if check and proc.returncode != 0:
35 raise SystemExit(proc.returncode)
36 return proc
37
38
39def ruff_json(paths: list[str]) -> list[dict]:

Callers 2

ruff_jsonFunction · 0.70
mainFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected