Skip to content

Commit b047b1e

Browse files
bgagentclaude
andcommitted
chore(format): apply ruff format
Whitespace-only changes flagged by CI's self-mutation guard. No behaviour change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 07bcc5b commit b047b1e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

agent/src/linear_reactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def _sweep_stale_reactions(issue_id: str, exclude_id: str | None = None) -> None
234234
)
235235
return
236236

237-
reactions = ((data.get("issue") or {}).get("reactions") or [])
237+
reactions = (data.get("issue") or {}).get("reactions") or []
238238
deletes = 0
239239
deletes_start = time.monotonic()
240240
for r in reactions:

agent/tests/test_linear_reactions.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ def test_sweep_deletes_only_viewer_owned_bgagent_emojis(self, monkeypatch):
274274
"linear_reactions.requests.post",
275275
side_effect=[
276276
_ok_response(reaction_id="r-new-eyes"), # new 👀 (first, user-visible)
277-
_viewer_response("viewer-bot"), # sweep: viewer fetch
278-
_reactions_response(prior_reactions), # sweep: reactions query
277+
_viewer_response("viewer-bot"), # sweep: viewer fetch
278+
_reactions_response(prior_reactions), # sweep: reactions query
279279
delete_resp, # delete r-bot-eyes
280280
delete_resp, # delete r-bot-check
281281
delete_resp, # delete r-bot-x
@@ -359,11 +359,11 @@ def test_viewer_id_cached_across_calls(self, monkeypatch):
359359
with patch(
360360
"linear_reactions.requests.post",
361361
side_effect=[
362-
_ok_response(reaction_id="r-1"), # 1st call's 👀
363-
_viewer_response("viewer-bot"), # 1st call's viewer fetch (sweep)
364-
_empty_reactions_response(), # 1st call's reactions query (sweep)
365-
_ok_response(reaction_id="r-2"), # 2nd call's 👀
366-
_empty_reactions_response(), # 2nd call's reactions only (cached viewer)
362+
_ok_response(reaction_id="r-1"), # 1st call's 👀
363+
_viewer_response("viewer-bot"), # 1st call's viewer fetch (sweep)
364+
_empty_reactions_response(), # 1st call's reactions query (sweep)
365+
_ok_response(reaction_id="r-2"), # 2nd call's 👀
366+
_empty_reactions_response(), # 2nd call's reactions only (cached viewer)
367367
],
368368
) as post:
369369
react_task_started("linear", {"linear_issue_id": "issue-1"})

0 commit comments

Comments
 (0)