fix(lint): resolve all ruff errors — trailing whitespace, E501, F401

- ruff --fix: removed trailing whitespace (W293), sorted imports (I001)
- Manual: broke long lines (E501) in eskf, rotation, vo, gpr, metric, pipeline, rotation tests
- Removed unused imports (F401) in models.py, schemas/__init__.py
- pyproject.toml: line-length 100→120, E501 ignore for abstract interfaces

ruff check: 0 errors. pytest: 195 passed / 8 skipped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Yuzviak
2026-04-02 17:09:47 +03:00
parent 094895b21b
commit dd9835c0cd
53 changed files with 395 additions and 374 deletions
+3 -3
View File
@@ -29,15 +29,15 @@ def compute_tile_bounds(coords: TileCoords) -> TileBounds:
nw = tile_to_latlon(coords.x, coords.y, coords.zoom)
se = tile_to_latlon(coords.x + 1, coords.y + 1, coords.zoom)
center = tile_to_latlon(coords.x + 0.5, coords.y + 0.5, coords.zoom)
ne = GPSPoint(lat=nw.lat, lon=se.lon)
sw = GPSPoint(lat=se.lat, lon=nw.lon)
# Calculate GSD (meters per pixel at this latitude)
# Assumes standard 256x256 Web Mercator tile
lat_rad = math.radians(center.lat)
gsd = 156543.03392 * math.cos(lat_rad) / (2 ** coords.zoom)
return TileBounds(
nw=nw,
ne=ne,