(cmd: Sequence[str], cwd: Path = REPO_ROOT, env: Mapping[str, str] | None = None)
| 55 | |
| 56 | |
| 57 | def _run(cmd: Sequence[str], cwd: Path = REPO_ROOT, env: Mapping[str, str] | None = None) -> str: |
| 58 | proc: Final = subprocess.run(cmd, cwd=cwd, capture_output=True, text=True, env=env) |
| 59 | if proc.returncode != 0: |
| 60 | sys.stderr.write(proc.stderr) |
| 61 | raise SystemExit(f"{cmd[0]} exited {proc.returncode}") |
| 62 | return proc.stdout |
| 63 | |
| 64 | |
| 65 | def checker_identity(checker: Path = CHECKER) -> Checker: |
no test coverage detected