Skip to content

The agent that grows with you

ci: fix linter errors after rebase

Maciej Lisiewski443ea25b570b
diff --git a/hermes_cli/source_releases.py b/hermes_cli/source_releases.py
index 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.py
index 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(cap
with 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(capl
with 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.py
index 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_p
raw = 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 turn
assert after == last_request_len # fresh again after the compaction mark: full history
diff --git a/tests/pm/test_filesystem_is_junction.py b/tests/pm/test_filesystem_is_junction.py
index 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.stderr
try: