mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 20:49:28 +00:00
feat(pre-push-safety-net): bound optional assistance to admitted witnesses
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user