fix: resolve 57 ruff lint errors (unused imports, unused variables, import placement)
CI / lint (push) Failing after 14s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in 11s

This commit is contained in:
2026-06-04 23:32:47 -04:00
parent 182e40800e
commit 3b53de1b33
14 changed files with 12 additions and 54 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
# tests/conftest.py — Shared fixtures for ObsiGate test suite
import os
import sys
import tempfile
from pathlib import Path
import pytest
@@ -91,7 +90,7 @@ def app_with_vault(test_vault_dir: str):
backend.main._load_config = lambda: {"watcher_enabled": False}
from backend.main import app
from backend.indexer import build_index, vault_config, index
from backend.indexer import build_index
import asyncio
# Build the index
@@ -100,7 +99,7 @@ def app_with_vault(test_vault_dir: str):
loop.run_until_complete(build_index())
# Build inverted index for search
from backend.search import init_inverted_index, _inverted_index
from backend.search import init_inverted_index
init_inverted_index()
client = TestClient(app)