fix: ruff linter warnings
Ampel / ampel (push) Failing after 23s

This commit is contained in:
Hitonabi
2026-08-07 16:14:49 +02:00
parent da03de18cb
commit 637c21387a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ def graph_vault() -> dict:
target = VAULT / n["id"]
content = target.read_text(encoding="utf-8", errors="replace")
# Set, um mehrfache Links auf dieselbe Datei zu entduplizieren
found_links = set(m.group(1).strip().lower() for m in link_rx.finditer(content))
found_links = {m.group(1).strip().lower() for m in link_rx.finditer(content)}
for link in found_links:
target_id = name_to_id.get(link)
+1 -1
View File
@@ -77,7 +77,7 @@ def _fetch_ci_status(repo: str, branch: str, head_sha: str) -> str | None:
# Nur auf der Box (wo creds liegen) sinnvoll
creds = _gitea_creds()
if not creds: return None
user, token = creds
_user, token = creds
cache_key = (repo, branch, head_sha)
cached = _CI_CACHE.get(cache_key)
if cached and (time.time() - cached["ts"] < 30 or cached["status"] in ("success", "failure", "skipped")):