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
+5 -4
View File
@@ -1,7 +1,8 @@
import pytest
from pathlib import Path
from shapely.geometry import box, mapping
import pytest
from langchain_core.tools.base import ToolCall
from shapely.geometry import box, mapping
from geo_assistant.tools.naip import fetch_naip_img
@@ -19,7 +20,7 @@ async def test_fetch_naip(tmp_path):
"""
# Union Market coordinates from GeoNames: 38.90789, -76.99831
# N 38°5428 W 76°5954
# N 38°54'28" W 76°59'54"
# We'll use a small neighborhood AOI around that point.
# :contentReference[oaicite:0]{index=0}
lat = 38.90789
@@ -44,7 +45,7 @@ async def test_fetch_naip(tmp_path):
id="test_tool_call_id",
)
# Call the actual tool no STAC / odc-stac mocking
# Call the actual tool - no STAC / odc-stac mocking
result = await fetch_naip_img.ainvoke(tool_call["args"])
# Basic sanity checks on result