(name: str)
| 27 | |
| 28 | |
| 29 | def _load_script(name: str) -> ModuleType: |
| 30 | path = Path(__file__).resolve().parent / f"{name}.py" |
| 31 | spec = importlib.util.spec_from_file_location(f"codex_security_{name}", path) |
| 32 | if spec is None or spec.loader is None: |
| 33 | raise ReportProjectionError(f"could not load report helper: {path}") |
| 34 | module = importlib.util.module_from_spec(spec) |
| 35 | spec.loader.exec_module(module) |
| 36 | return module |
| 37 | |
| 38 | |
| 39 | def _text(value: Any, fallback: str) -> str: |
no test coverage detected