fix: resolve 57 ruff lint errors (unused imports, unused variables, import placement)
This commit is contained in:
+2
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user