Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(lint): sort imports and drop extra parentheses in the language-support docs test (#2666)

Raghav Chamadiyacbe6f80a916f
diff --git a/tests/unit/test_language_support_docs.py b/tests/unit/test_language_support_docs.py
index b998b42d3..4b3448940 100644
--- a/tests/unit/test_language_support_docs.py
+++ b/tests/unit/test_language_support_docs.py
@@ -1,8 +1,8 @@
from __future__ import annotations
import ast
-from pathlib import Path
import re
+from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
DOC = ROOT / "docs" / "architecture" / "language-support.md"
@@ -20,7 +20,7 @@ def test_language_support_edge_type_sets_are_real_model_symbols() -> None:
for node in tree.body
if isinstance(node, (ast.Assign, ast.AnnAssign))
for target in (
- ([node.target] if isinstance(node, ast.AnnAssign) else node.targets)
+ [node.target] if isinstance(node, ast.AnnAssign) else node.targets
)
if isinstance(target, ast.Name)
}