(
repo_path: Path, args: list[str], check: bool = True
)
| 519 | |
| 520 | |
| 521 | def _run_git_command_raw( |
| 522 | repo_path: Path, args: list[str], check: bool = True |
| 523 | ) -> subprocess.CompletedProcess[bytes]: |
| 524 | return subprocess.run( # noqa: S603 |
| 525 | ["git", "-C", str(repo_path), *args], # noqa: S607 |
| 526 | capture_output=True, |
| 527 | check=check, |
| 528 | ) |
| 529 | |
| 530 | |
| 531 | def _is_ci_environment(env: dict[str, str]) -> bool: |
no outgoing calls
no test coverage detected