evals: use pre-commit hooks

This commit is contained in:
Drew Ritter
2026-05-06 15:41:52 -07:00
committed by Drew Ritter
parent 35e42a16ce
commit 7f02ccd91b
14 changed files with 244 additions and 63 deletions

View File

@@ -1,4 +1,5 @@
from __future__ import annotations
import shutil
import subprocess
from pathlib import Path
@@ -28,7 +29,8 @@ def create_base_repo(workdir: Path, template_dir: Path) -> None:
if (template_dir / ".git").exists():
subprocess.run(
["git", "clone", str(template_dir), str(workdir)],
check=True, capture_output=True,
check=True,
capture_output=True,
)
return