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
+3 -2
View File
@@ -1,9 +1,10 @@
"""Tests for the satellite image summarization tool."""
import pytest
import uuid
import pytest
from langchain_core.tools.base import ToolCall
from geo_assistant.tools.summarize import summarize_sat_img
# Sample test data
@@ -24,7 +25,7 @@ def test_summarize_sat_img(img_url, summary):
type="tool_call",
args={"img_url": img_url},
id=str(uuid.uuid4()),
)
),
)
print(command.update.get("messages"))