(root: Path, checker: Path)
| 75 | |
| 76 | |
| 77 | def _check(root: Path, checker: Path) -> tuple[Violation, ...]: |
| 78 | resolved: Final = root.resolve() |
| 79 | env: Final = { |
| 80 | **os.environ, |
| 81 | "PYTHONPATH": os.pathsep.join((str(resolved), str(resolved / "enterprise"), os.environ.get("PYTHONPATH", ""))), |
| 82 | } |
| 83 | return parse_violations(_run([sys.executable, str(checker)], cwd=resolved, env=env)) |
| 84 | |
| 85 | |
| 86 | def head_violations() -> tuple[Violation, ...]: |