chore: fix linting

This commit is contained in:
Anish Sarkar 2026-05-12 04:00:04 +05:30
parent 4dbadbf159
commit 275e2c9e83
16 changed files with 33 additions and 74 deletions

View file

@ -36,9 +36,7 @@ class MintResponse(BaseModel):
def _expected_secret() -> str:
return os.environ.get(
"E2E_MINT_SECRET", "local-e2e-mint-secret-not-for-production"
)
return os.environ.get("E2E_MINT_SECRET", "local-e2e-mint-secret-not-for-production")
router = APIRouter(prefix="/__e2e__", tags=["__e2e__"])

View file

@ -92,7 +92,9 @@ async def fake_process_document(
# Empty fallback so the indexing pipeline does not error out on
# an unexpected payload. A failing canary assertion is a much
# clearer failure mode than a hard parser exception.
content = f"# {display_name}\n\n(empty docling fake — no text-show operators found)\n"
content = (
f"# {display_name}\n\n(empty docling fake — no text-show operators found)\n"
)
logger.info(
"[fake-docling] returning %d chars for %s",

View file

@ -164,9 +164,7 @@ def _install_synthetic_global_llm_config() -> None:
import shutil
src = os.path.join(_THIS_DIR, "fixtures", "global_llm_config.yaml")
dst = os.path.join(
_BACKEND_ROOT, "app", "config", "global_llm_config.yaml"
)
dst = os.path.join(_BACKEND_ROOT, "app", "config", "global_llm_config.yaml")
if not os.path.exists(src):
raise RuntimeError(

View file

@ -142,9 +142,7 @@ def _install_synthetic_global_llm_config() -> None:
import shutil
src = os.path.join(_THIS_DIR, "fixtures", "global_llm_config.yaml")
dst = os.path.join(
_BACKEND_ROOT, "app", "config", "global_llm_config.yaml"
)
dst = os.path.join(_BACKEND_ROOT, "app", "config", "global_llm_config.yaml")
if not os.path.exists(src):
raise RuntimeError(