Skip to content

Commit 8f5f73d

Browse files
committed
fix: ruff format remaining files
1 parent 5fe7e4e commit 8f5f73d

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

src/hawk/toolkit.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,13 @@ async def execute_async(self, tool_name: str, arguments: dict[str, Any]) -> str:
226226
self._background_tasks[task_id] = BackgroundTask(
227227
id=task_id, tool_name=tool_name, task=task
228228
)
229-
return json.dumps({
230-
"status": "running",
231-
"task_id": task_id,
232-
"message": f"Tool '{tool_name}' executing in background. Use view_task('{task_id}') to check status.",
233-
})
229+
return json.dumps(
230+
{
231+
"status": "running",
232+
"task_id": task_id,
233+
"message": f"Tool '{tool_name}' executing in background. Use view_task('{task_id}') to check status.",
234+
}
235+
)
234236

235237
context = {"tool_name": tool_name, "arguments": arguments, "tool": tool}
236238

tests/test_streaming.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ def test_collect_text(self) -> None:
5858
assert text == "Hello World"
5959

6060
def test_collect_tool_calls(self) -> None:
61-
tool_data = json.dumps({
62-
"id": "tc-1",
63-
"name": "get_weather",
64-
"arguments": {"location": "NYC"},
65-
})
61+
tool_data = json.dumps(
62+
{
63+
"id": "tc-1",
64+
"name": "get_weather",
65+
"arguments": {"location": "NYC"},
66+
}
67+
)
6668
lines = [
6769
"event: tool_call",
6870
f"data: {tool_data}",

0 commit comments

Comments
 (0)