From 5ee3d8cd845fc7371eb27efb34017ba3f95ac72f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 23 Feb 2026 21:24:11 +0000 Subject: [PATCH] style: apply ruff auto-fix - Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] --- app/tasks/process_document.py | 3 --- app/utils/ocr_provider.py | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/tasks/process_document.py b/app/tasks/process_document.py index 4c43f0da..0c994d38 100644 --- a/app/tasks/process_document.py +++ b/app/tasks/process_document.py @@ -14,9 +14,6 @@ from app.config import settings from app.database import SessionLocal from app.models import FileRecord from app.tasks.extract_metadata_with_gpt import extract_metadata_with_gpt -from app.tasks.process_with_azure_document_intelligence import ( - process_with_azure_document_intelligence, -) from app.tasks.process_with_ocr import process_with_ocr from app.tasks.retry_config import BaseTaskWithRetry from app.utils import get_unique_filepath_with_counter, hash_file, log_task_progress diff --git a/app/utils/ocr_provider.py b/app/utils/ocr_provider.py index ab723307..7c61192b 100644 --- a/app/utils/ocr_provider.py +++ b/app/utils/ocr_provider.py @@ -102,7 +102,6 @@ class AzureOCRProvider(OCRProvider): name = "azure" def process(self, file_path: str) -> OCRResult: - import azure.core.exceptions from azure.ai.documentintelligence import DocumentIntelligenceClient from azure.ai.documentintelligence.models import AnalyzeOutputOption from azure.core.credentials import AzureKeyCredential @@ -390,7 +389,7 @@ class AWSTextractOCRProvider(OCRProvider): if not aws_access_key_id or not aws_secret_access_key: raise ValueError( - "AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set " "when using the AWS Textract OCR provider." + "AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set when using the AWS Textract OCR provider." ) logger.info(f"[AWSTextract] Processing {os.path.basename(file_path)} (region={region})")