(corpus_path: Path)
| 55 | |
| 56 | |
| 57 | def _read_corpus(corpus_path: Path) -> list[Path]: |
| 58 | paths: list[Path] = [] |
| 59 | for raw_line in corpus_path.read_text().splitlines(): |
| 60 | line = raw_line.split("#", 1)[0].strip() |
| 61 | if not line: |
| 62 | continue |
| 63 | path = Path(line).expanduser() |
| 64 | if not path.is_absolute(): |
| 65 | path = REPO_ROOT / path |
| 66 | paths.append(path) |
| 67 | return paths |
| 68 | |
| 69 | |
| 70 | def _git_metadata() -> dict[str, Any]: |
no outgoing calls
no test coverage detected