ci: align backend lint checks
Some checks failed
CI / Backend (lint + tests + compose) (push) Has been cancelled
CI / Frontend (lint + type-check + build) (push) Has been cancelled

This commit is contained in:
Vadim Malanov
2026-06-14 20:14:49 +03:00
parent dba0484f5a
commit 2e76554188
14 changed files with 22 additions and 20 deletions

View File

@@ -18,14 +18,12 @@ runs in production - not a replacement.
from __future__ import annotations
import hmac
from typing import Awaitable, Callable
from collections.abc import Awaitable, Callable
from fastapi import FastAPI, Request, Response
from fastapi.responses import JSONResponse
from starlette.types import ASGIApp
from app.config import settings as _module_settings
EXEMPT_PATHS: tuple[str, ...] = ("/", "/docs", "/redoc", "/openapi.json")
EXEMPT_SUFFIXES: tuple[str, ...] = ("/health",)

View File

@@ -7,8 +7,8 @@ implementation and supports dense + sparse output. We fall back to
from __future__ import annotations
from collections.abc import Sequence
from functools import lru_cache
from typing import Sequence
import numpy as np

View File

@@ -2,8 +2,9 @@
from __future__ import annotations
from collections.abc import Iterable
from functools import lru_cache
from typing import Any, Iterable
from typing import Any
from opensearchpy import OpenSearch, RequestsHttpConnection
from opensearchpy.helpers import bulk

View File

@@ -2,8 +2,9 @@
from __future__ import annotations
from collections.abc import Sequence
from functools import lru_cache
from typing import Any, Sequence
from typing import Any
from qdrant_client import QdrantClient
from qdrant_client.http import models as qm

View File

@@ -7,8 +7,8 @@ Designed to degrade gracefully:
from __future__ import annotations
from collections.abc import Sequence
from functools import lru_cache
from typing import Sequence
from app.config import settings
from app.logging_config import get_logger

View File

@@ -20,7 +20,6 @@ from typing import Any
from app.config import settings
from app.ingestion.docling_extractor import (
ExtractedBlock,
ExtractedFigure,
ExtractedTable,
ExtractionResult,
)

View File

@@ -29,8 +29,7 @@ def configure_logging() -> None:
]
structlog.configure(
processors=shared_processors
+ [structlog.stdlib.ProcessorFormatter.wrap_for_formatter],
processors=[*shared_processors, structlog.stdlib.ProcessorFormatter.wrap_for_formatter],
logger_factory=structlog.stdlib.LoggerFactory(),
wrapper_class=structlog.stdlib.BoundLogger,
cache_logger_on_first_use=True,

View File

@@ -2,8 +2,8 @@
from __future__ import annotations
from collections.abc import AsyncIterator
from contextlib import asynccontextmanager
from typing import AsyncIterator
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware