phase 15: fix ruff lint errors across services

This commit is contained in:
Celes Renata
2026-04-11 12:10:01 -07:00
parent ce10afa034
commit 109440c91e
20 changed files with 67 additions and 65 deletions
+1
View File
@@ -30,6 +30,7 @@ async def main() -> None:
ollama = OllamaClient(config.ollama)
import json
import redis.asyncio as aioredis
redis_client = aioredis.from_url(config.redis.url)
+1 -1
View File
@@ -11,7 +11,7 @@ from __future__ import annotations
import json
from typing import Any
from services.extractor.schemas import generate_json_schema, SCHEMA_VERSION
from services.extractor.schemas import SCHEMA_VERSION, generate_json_schema
from services.shared.schemas import (
DocumentType,
)
+6 -7
View File
@@ -25,13 +25,6 @@ from services.shared.metadata import (
persist_document_intelligence,
update_document_status,
)
from services.shared.storage import (
upload_extraction_intelligence,
upload_extraction_prompt,
upload_extraction_raw_output,
upload_extraction_validation,
)
from services.shared.logging import Span
from services.shared.metrics import (
EXTRACTION_ATTEMPTS,
EXTRACTION_CONFIDENCE,
@@ -41,6 +34,12 @@ from services.shared.metrics import (
EXTRACTION_TOKEN_ESTIMATE,
EXTRACTION_VALIDATION_ERRORS,
)
from services.shared.storage import (
upload_extraction_intelligence,
upload_extraction_prompt,
upload_extraction_raw_output,
upload_extraction_validation,
)
logger = logging.getLogger("extractor_worker")