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

Function _validate_sha

tools/test_selector.py:171–174  ·  view source on GitHub ↗
(label: str, sha: str)

Source from the content-addressed store, hash-verified

169
170
171def _validate_sha(label: str, sha: str) -> str:
172 if not sha or not SHA_RE.match(sha):
173 raise ValueError(f"Invalid {label} SHA: {sha!r}")
174 return sha
175
176
177def _ensure_commit_exists(sha: str, cwd: Path) -> None:

Callers 2

_empty_treeFunction · 0.85
determine_diff_rangeFunction · 0.85

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected