From b0443dfde18f68cc5a4a978cf0db91afd6418284 Mon Sep 17 00:00:00 2001 From: aisi-inspect <166920645+aisi-inspect@users.noreply.github.com> Date: Tue, 7 May 2024 22:45:12 +0000 Subject: [PATCH] release v0.3.8 --- CHANGELOG.md | 4 ++++ src/inspect_ai/_cli/info.py | 2 +- src/inspect_ai/_cli/list.py | 2 +- tools/vscode/src/extension.ts | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e72d808e..092412a27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.3.8 (07 May 2024) + +- Exclude null config values from listings in log viewer. + ## v0.3.7 (07 May 2024) - Add support for logprobs to HF provider, and create uniform API for other providers that support logprobs (Together and OpenAI). diff --git a/src/inspect_ai/_cli/info.py b/src/inspect_ai/_cli/info.py index 862f81da0..20056736b 100644 --- a/src/inspect_ai/_cli/info.py +++ b/src/inspect_ai/_cli/info.py @@ -50,7 +50,7 @@ def log(path: str, header_only: bool) -> None: def log_file_headers(files: tuple[str]) -> None: """Read and print a JSON list of log file headers.""" headers = read_eval_log_headers(list(files)) - print(dumps(to_jsonable_python(headers), indent=2)) + print(dumps(to_jsonable_python(headers, exclude_none=True), indent=2)) @info_command.command("log-schema") diff --git a/src/inspect_ai/_cli/list.py b/src/inspect_ai/_cli/list.py index fb8fc4480..75fb1755f 100644 --- a/src/inspect_ai/_cli/list.py +++ b/src/inspect_ai/_cli/list.py @@ -76,7 +76,7 @@ def task_filter(task: TaskInfo) -> bool: # print as JSON or plain text if json: - print(dumps(to_jsonable_python(tasks), indent=2)) + print(dumps(to_jsonable_python(tasks, exclude_none=True), indent=2)) else: print("\n".join([f"{task.file}@{task.name}" for task in tasks])) diff --git a/tools/vscode/src/extension.ts b/tools/vscode/src/extension.ts index 208d275e6..4cc030fe4 100644 --- a/tools/vscode/src/extension.ts +++ b/tools/vscode/src/extension.ts @@ -23,7 +23,7 @@ import { inspectBinPath, inspectVersion } from "./inspect/props"; export const kInspectViewOutputChannelName = "Inspect View"; export const kInspectEnvironmentOutputChannelName = "Inspect Environment"; -const kInspectMinimumVersion = "0.3.6"; +const kInspectMinimumVersion = "0.3.8"; // This method is called when your extension is activated // Your extension is activated the very first time the command is executed