(readme_path: Path)
| 256 | |
| 257 | |
| 258 | def parse_index_items(readme_path: Path) -> list[tuple[str, str, str]]: |
| 259 | items: list[tuple[str, str, str]] = [] |
| 260 | pattern = re.compile(r"^\s*-\s*(\d{4}-\d{2}-\d{2})\s*-\s*\[([^\]]+)]\(([^)]+)\)") |
| 261 | for line in readme_path.read_text(encoding="utf-8").splitlines(): |
| 262 | match = pattern.match(line) |
| 263 | if match: |
| 264 | items.append((match.group(1), match.group(2), match.group(3))) |
| 265 | return items |
| 266 | |
| 267 | |
| 268 | def main() -> None: |
no outgoing calls
no test coverage detected