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

Function _init_repo

tests/tools/test_selector/test_selector_validation.py:26–32  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

24
25
26def _init_repo(tmp_path: Path) -> Path:
27 repo = tmp_path / "repo"
28 repo.mkdir()
29 _git(repo, "init")
30 _git(repo, "config", "user.name", "Test User")
31 _git(repo, "config", "user.email", "test@example.com")
32 return repo
33
34
35def _commit_file(repo: Path, relpath: str, content: str, message: str) -> str:

Calls 1

_gitFunction · 0.85

Tested by

no test coverage detected