The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
ci: RUF024
Maciej Lisiewski2a1a95c8f99c
diff --git a/ruff.strict.toml b/ruff.strict.tomlindex 68e6bb02135..bd55a76dd29 100644--- a/ruff.strict.toml+++ b/ruff.strict.toml@@ -426,7 +426,7 @@ select = ["RUF020",# "RUF022","RUF023",- # "RUF024",+ "RUF024","RUF026","RUF028","RUF030",diff --git a/tests/pm/test_update_request_reuse.py b/tests/pm/test_update_request_reuse.pyindex 2dbc50cd7ea..bebc427fd66 100644--- a/tests/pm/test_update_request_reuse.py+++ b/tests/pm/test_update_request_reuse.py@@ -209,7 +209,7 @@ def test_pinning_hashes_new_npm_url_once_and_keeps_existing_rows(upstream, tmp_pper_target=dict.fromkeys(ALL_TARGETS, version))pinned = cli._pin_artifacts(package, decision, current)assert current == {"any": old, "unresolved-target": old}- assert pinned == {**current, **dict.fromkeys(ALL_TARGETS, {"url": artifact_url, "sha256": digest})}+ assert pinned == {**current, **{key: {"url": artifact_url, "sha256": digest} for key in ALL_TARGETS}}assert Counter(path for path, _ in calls) == {artifact_path: 1}# Existing pins need no download; a separate pin invocation must not retain new hashes.diff --git a/tools/terminal_tool_result.py b/tools/terminal_tool_result.pyindex 942b1780c19..48446820dd0 100644--- a/tools/terminal_tool_result.py+++ b/tools/terminal_tool_result.py@@ -67,9 +67,9 @@ def _interpret_signal_exit(exit_code: int) -> str | None:# Informational non-zero exit codes per base command._EXIT_CODE_SEMANTICS: dict[str, dict[int, str]] = {- **dict.fromkeys(("grep", "egrep", "fgrep", "rg", "ag", "ack"), {1: "No matches found (not an error)"}),- **dict.fromkeys(("diff", "colordiff"), {1: "Files differ (expected, not an error)"}),- **dict.fromkeys(("test", "["), {1: "Condition evaluated to false (expected, not an error)"}),+ **{key: {1: "No matches found (not an error)"} for key in ("grep", "egrep", "fgrep", "rg", "ag", "ack")},+ **{key: {1: "Files differ (expected, not an error)"} for key in ("diff", "colordiff")},+ **{key: {1: "Condition evaluated to false (expected, not an error)"} for key in ("test", "[")},"find": {1: "Some directories were inaccessible (partial results may still be valid)"},"curl": {6: "Could not resolve host", 7: "Failed to connect to host",22: "HTTP response code indicated error (e.g. 404, 500)", 28: "Operation timed out"},