style: apply ruff auto-fix

- Auto-formatted code with ruff format
- Applied ruff linting fixes with --fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-02-23 21:24:11 +00:00
parent 631d43c664
commit 5ee3d8cd84
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -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
+1 -2
View File
@@ -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})")