feat(pre-push-safety-net): bound optional assistance to admitted witnesses

This commit is contained in:
Marius Ciepluch
2026-09-13 18:03:31 +02:00
parent 749c7ab45d
commit fa074dd197
15 changed files with 543 additions and 29 deletions
+3 -2
View File
@@ -210,8 +210,9 @@ class ResolvedConfig:
runs_dir: str = ".openultrasast/runs"
def load_config(config_path: Path | None = None) -> ResolvedConfig:
load_dotenv()
def load_config(config_path: Path | None = None, *, dotenv: bool = True) -> ResolvedConfig:
if dotenv:
load_dotenv()
data: dict[str, object] = {}
if config_path is not None and config_path.exists():
with config_path.open("rb") as handle: