(path: Path, rows: list[CommitRow])
| 587 | |
| 588 | |
| 589 | def write_csv(path: Path, rows: list[CommitRow]) -> None: |
| 590 | path.parent.mkdir(parents=True, exist_ok=True) |
| 591 | with path.open('w', newline='') as csv_file: |
| 592 | writer = csv.writer(csv_file) |
| 593 | writer.writerow(COMMIT_FIELDS) |
| 594 | for row in rows: |
| 595 | writer.writerow([getattr(row, field) for field in COMMIT_FIELDS]) |
| 596 | |
| 597 | |
| 598 | def write_lines(path: Path, lines: Iterable[str]) -> None: |
no outgoing calls
no test coverage detected