Use ruff rules COM, F, I, RUF, UP (#17)

* Use pyupgrade (UP) rule

* Use pyflakes (F) rule

* Use isort (I) rule

* Use ruff-specific (RUF) rules

* Use flake8-commas (COM) rule

* Fix UP043 Unnecessary default type arguments
This commit is contained in:
Wei Ji
2025-12-05 10:44:37 +00:00
committed by GitHub
parent 7c97b475e4
commit e3530cefd2
16 changed files with 103 additions and 78 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import os
import pytest
from langchain_core.tools.base import ToolCall
@@ -24,6 +25,6 @@ async def test_get_place():
type="tool_call",
id="test_id",
args={"place_name": "Neighbourhood Cafe Lisbon"},
)
),
)
assert "place" in command.update