Skip to content

Commit a1f8f84

Browse files
committed
Fix lint issues from PR #123 merge (black + isort)
1 parent 0df5cfd commit a1f8f84

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/bot/orchestrator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,14 @@ async def _on_stream(update_obj: StreamUpdate) -> None:
725725
name = tc.get("name", "unknown")
726726
detail = self._summarize_tool_input(name, tc.get("input", {}))
727727
if verbose_level >= 1:
728-
tool_log.append({"kind": "tool", "name": name, "detail": detail})
728+
tool_log.append(
729+
{"kind": "tool", "name": name, "detail": detail}
730+
)
729731
if draft_streamer:
730732
icon = _tool_icon(name)
731-
line = f"{icon} {name}: {detail}" if detail else f"{icon} {name}"
733+
line = (
734+
f"{icon} {name}: {detail}" if detail else f"{icon} {name}"
735+
)
732736
await draft_streamer.append_tool(line)
733737

734738
# Capture assistant text (reasoning / commentary)

src/claude/sdk_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
ToolUseBlock,
2525
UserMessage,
2626
)
27-
from claude_agent_sdk.types import StreamEvent
2827
from claude_agent_sdk._errors import MessageParseError
2928
from claude_agent_sdk._internal.message_parser import parse_message
29+
from claude_agent_sdk.types import StreamEvent
3030

3131
from ..config.settings import Settings
3232
from ..security.validators import SecurityValidator

tests/unit/test_bot/test_draft_streamer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import pytest
1818

1919
from src.bot.utils.draft_streamer import (
20-
DraftStreamer,
2120
_MAX_TOOL_LINES,
21+
DraftStreamer,
2222
generate_draft_id,
2323
)
2424
from src.utils.constants import TELEGRAM_MAX_MESSAGE_LENGTH

0 commit comments

Comments
 (0)