style: apply ruff auto-fixes across codebase

- Fix import sorting (isort) across all engine modules
- Fix SIM105 try-except-pass patterns (contextlib.suppress)
- Fix nested with statements in tests
- Fix unused loop variables

Run 'uv run pytest' to verify tests still pass.
This commit is contained in:
2026-03-15 14:24:51 -07:00
committed by Gene Johnson
parent ccbdb84888
commit 0a16e3e564
11 changed files with 63 additions and 39 deletions

View File

@@ -3,10 +3,10 @@ Google Translate wrapper and location→language detection.
Depends on: sources (for LOCATION_LANGS).
"""
import re
import json
import urllib.request
import re
import urllib.parse
import urllib.request
from engine.sources import LOCATION_LANGS