From 660f6fda235c71f10d19000f369332cbcda2435c Mon Sep 17 00:00:00 2001 From: Leon Derczynski Date: Mon, 19 Feb 2024 08:22:40 -0800 Subject: [PATCH] rename default output dir to garak_runs/; add reporting config output to list_config (#488) --- .gitignore | 3 ++- garak/_config.py | 1 - garak/command.py | 2 +- garak/resources/garak.core.yaml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 09f5bac9..33fc612b 100644 --- a/.gitignore +++ b/.gitignore @@ -164,5 +164,6 @@ garak.*.jsonl garak.log hitlog.*.jsonl .vscode +garak_runs/ runs/ -logs/ \ No newline at end of file +logs/ diff --git a/garak/_config.py b/garak/_config.py index 541028e4..e55406b3 100644 --- a/garak/_config.py +++ b/garak/_config.py @@ -57,7 +57,6 @@ class TransientConfig(GarakSubConfig): plugins.detectors = {} plugins.buffs = {} plugins.harnesses = {} -reporting.report_dir = "runs" reporting.taxonomy = None # set here to enable report_digest to be called directly diff --git a/garak/command.py b/garak/command.py index f605c36a..da44aa43 100644 --- a/garak/command.py +++ b/garak/command.py @@ -241,7 +241,7 @@ def list_config(): print("_config:") _enumerate_obj_values(_config) - for section in "system transient run plugins".split(): + for section in "system transient run plugins reporting".split(): print(f"{section}:") _enumerate_obj_values(getattr(_config, section)) diff --git a/garak/resources/garak.core.yaml b/garak/resources/garak.core.yaml index e4bb8c21..b62eefc2 100644 --- a/garak/resources/garak.core.yaml +++ b/garak/resources/garak.core.yaml @@ -32,3 +32,4 @@ plugins: reporting: report_prefix: taxonomy: + report_dir: garak_runs \ No newline at end of file