(out: str)
| 67 | |
| 68 | |
| 69 | def parse_violations(out: str) -> tuple[Violation, ...]: |
| 70 | return tuple( |
| 71 | Violation(match.group("method"), match.group("path"), match.group("code")) |
| 72 | for line in out.splitlines() |
| 73 | if (match := _LINE.match(line)) is not None |
| 74 | ) |
| 75 | |
| 76 | |
| 77 | def _check(root: Path, checker: Path) -> tuple[Violation, ...]: |