MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / _run

Function _run

tests/tools/docs_and_notebooks_checks/test_check_contracts.py:63–64  ·  view source on GitHub ↗
(cmd: list[str], cwd: Path, env: dict | None = None)

Source from the content-addressed store, hash-verified

61# Git helpers for a temp repo
62# -----------------------------
63def _run(cmd: list[str], cwd: Path, env: dict | None = None) -> subprocess.CompletedProcess:
64 return subprocess.run(cmd, cwd=str(cwd), env=env, capture_output=True, text=True, check=True)
65
66
67def _git_init(repo: Path) -> None:

Callers 2

_git_initFunction · 0.85
_git_commitFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected