phase 15: fix ruff lint errors across services
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user