Skip to content

Commit

Permalink
rename default output dir to garak_runs/; add reporting config output…
Browse files Browse the repository at this point in the history
… to list_config (#488)
  • Loading branch information
leondz authored Feb 19, 2024
1 parent 00f9148 commit 660f6fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,6 @@ garak.*.jsonl
garak.log
hitlog.*.jsonl
.vscode
garak_runs/
runs/
logs/
logs/
1 change: 0 additions & 1 deletion garak/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion garak/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
1 change: 1 addition & 0 deletions garak/resources/garak.core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ plugins:
reporting:
report_prefix:
taxonomy:
report_dir: garak_runs

0 comments on commit 660f6fd

Please sign in to comment.