From e17b386208dffcef42fb8951cf706481f2e1dd0b Mon Sep 17 00:00:00 2001 From: Ranjan Shrestha Date: Mon, 20 Jul 2026 16:23:46 +0545 Subject: [PATCH 1/2] fix: pass the correct params(lat,lng) --- service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.py b/service.py index 66fa052..fdc13dd 100644 --- a/service.py +++ b/service.py @@ -48,7 +48,7 @@ async def get_iso3(lat: float, lng: float) -> geocoding.Country: geocoder = shared_mem["geocoder"] if not geocoder: raise Exception("Geocoder is not initialized") - result = geocoder.get_iso3_from_geometry(lat, lng) + result = geocoder.get_iso3_from_geometry(lng=lng, lat=lat) if not result: raise HTTPException(status_code=404, detail="iso3 not found.") return result From 75116ed1054829c4a88905ce56943d75576e5f81 Mon Sep 17 00:00:00 2001 From: Ranjan Shrestha Date: Mon, 20 Jul 2026 16:40:48 +0545 Subject: [PATCH 2/2] chore: update types for ruff and ruff-format --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7664f03..b38287b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,11 +48,11 @@ repos: hooks: # Linter - id: ruff - types_or: [python, pyi, jupyter, toml] + types_or: [python, pyi, jupyter, pyproject] args: [--fix, --exit-non-zero-on-fix] # Formatter - id: ruff-format - types_or: [python, pyi, jupyter, toml] + types_or: [python, pyi, jupyter, pyproject] - repo: https://github.com/astral-sh/uv-pre-commit rev: 0.6.9