(
args: List[str],
cwd: Path,
*,
check: bool = True,
timeout: int = 60,
input: Optional[str] = None,
)
| 1354 | for file_path in path.rglob("*"): |
| 1355 | if not file_path.is_file(): |
| 1356 | continue |
| 1357 | if file_path.name.startswith("."): |
| 1358 | continue |
| 1359 | archive.write(file_path, arcname=f"{label}/{file_path.relative_to(path)}") |
| 1360 | count += 1 |
| 1361 | return {"format": "zip", "path": str(output), "display_path": _display_path(output), "count": count} |
| 1362 | |
| 1363 | raise ValueError("export_format must be markdown or zip") |
| 1364 | |
| 1365 | |
| 1366 | def _run_git( |
| 1367 | args: List[str], |
| 1368 | cwd: Path, |
| 1369 | *, |
| 1370 | check: bool = True, |
| 1371 | timeout: int = 60, |
| 1372 | input: Optional[str] = None, |
| 1373 | ) -> subprocess.CompletedProcess[str]: |
| 1374 | return subprocess.run( |
| 1375 | ["git", *args], |
no outgoing calls
no test coverage detected