The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
ci: fix linter errors after rebase
Maciej Lisiewski443ea25b570b
diff --git a/hermes_cli/source_releases.py b/hermes_cli/source_releases.pyindex 1e821b87b06..b1221351315 100644--- a/hermes_cli/source_releases.py+++ b/hermes_cli/source_releases.py@@ -106,7 +106,7 @@ def _head_containing(git_cmd, cwd, commit: str, repository: str) -> str | None:def run(*args):return subprocess.run([*git_cmd, *args], cwd=cwd, capture_output=True, text=True, encoding="utf-8",- errors="replace", timeout=10, stdin=subprocess.DEVNULL, env=source_git_env())+ errors="replace", timeout=10, stdin=subprocess.DEVNULL, env=source_git_env(), check=False)head = run("rev-parse", "HEAD").stdout.strip()if not _SHA.fullmatch(head):diff --git a/tests/agent/test_compression_attempt_effect.py b/tests/agent/test_compression_attempt_effect.pyindex c918ca4a7dd..fcbf2b23982 100644--- a/tests/agent/test_compression_attempt_effect.py+++ b/tests/agent/test_compression_attempt_effect.py@@ -97,7 +97,7 @@ def test_committed_summary_records_trigger_effect_and_method_without_content(capwith patch.object(agent.context_compressor, "_generate_summary", return_value="SANITIZED SUMMARY"):with caplog.at_level(logging.INFO, logger="agent.conversation_compression"):- compressed, _ = compress_context(agent, _messages(), "system prompt", approx_tokens=80_000, trigger="pre_api")+ _compressed, _ = compress_context(agent, _messages(), "system prompt", approx_tokens=80_000, trigger="pre_api")[record] = _attempt_records(caplog)assert record["trigger_source"] == "pre_api"@@ -121,7 +121,7 @@ def test_deterministic_fallback_commit_records_its_method_and_dropped_items(caplwith patch.object(agent.context_compressor, "_generate_summary", return_value=None):with caplog.at_level(logging.INFO, logger="agent.conversation_compression"):- compressed, _ = compress_context(agent, _messages(), "system prompt", approx_tokens=80_000)+ _compressed, _ = compress_context(agent, _messages(), "system prompt", approx_tokens=80_000)[record] = _attempt_records(caplog)assert record["commit_status"] == "committed"diff --git a/tests/agent/test_relay_compaction_atof.py b/tests/agent/test_relay_compaction_atof.pyindex e19c768b986..efd663003cf 100644--- a/tests/agent/test_relay_compaction_atof.py+++ b/tests/agent/test_relay_compaction_atof.py@@ -188,7 +188,7 @@ def test_committed_compaction_mark_resets_freshness_for_the_next_llm_start(tmp_praw = json.dumps(mark)assert SECRET not in raw and "SANITIZED SUMMARY" not in raw- first, second, after = _llm_start_message_counts(events)+ _first, second, after = _llm_start_message_counts(events)assert second < len(_transcript()) # not fresh: projected to the current user turnassert after == last_request_len # fresh again after the compaction mark: full historydiff --git a/tests/pm/test_filesystem_is_junction.py b/tests/pm/test_filesystem_is_junction.pyindex 15985b34016..e3bff0f94d1 100644--- a/tests/pm/test_filesystem_is_junction.py+++ b/tests/pm/test_filesystem_is_junction.py@@ -25,7 +25,7 @@ def test_real_junction_and_plain_directory(tmp_path: Path) -> None:command = str(Path(os.environ["SystemRoot"]) / "System32" / "cmd.exe")result = subprocess.run([command, "/d", "/c", "mklink", "/J", str(junction), str(target)],- capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=15,+ capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=15, check=False,)assert result.returncode == 0, result.stdout + result.stderrtry: