mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
chore: fix linting
This commit is contained in:
parent
4dbadbf159
commit
275e2c9e83
16 changed files with 33 additions and 74 deletions
|
|
@ -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__"])
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue