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
+1 -6
View File
@@ -9,11 +9,6 @@ from backend.search import (
_highlight_terms,
_extract_highlighted_snippet,
_extract_regex_snippet,
get_all_tags,
suggest_titles,
suggest_tags,
search,
advanced_search,
)
@@ -253,7 +248,7 @@ class TestSuggestAPI:
data = resp.json()
except Exception:
pytest.skip(f"Suggest tags non-JSON: {resp.text[:100]}")
tags = [s["tag"] for s in data["suggestions"]]
_ = [s["tag"] for s in data["suggestions"]]
assert len(data["suggestions"]) >= 0 # At minimum, valid response