Skip to content

Commit 148d5a1

Browse files
cdeustclaude
andcommitted
style: ruff format on graph_quality_scorer.py + test_recall.py
CI Lint job for f8495bb / a1a3c1b failed on `ruff format --check .` — two files needed reformatting (a missing blank line + indentation normalization). Pure formatting, no semantic changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f8495bb commit 148d5a1

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

mcp_server/core/graph_quality_scorer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ def _score_symbol(n: dict, conns: int, total: int) -> tuple[float, str]:
277277
"""
278278
name = n.get("name", "") or n.get("label", "")
279279
sym_type = n.get("symbol_type", "")
280-
is_private = isinstance(name, str) and name.startswith("_") and not name.startswith("__")
280+
is_private = (
281+
isinstance(name, str) and name.startswith("_") and not name.startswith("__")
282+
)
281283

282284
parts: list[str] = []
283285
q = 0.0

tests_py/handlers/test_recall.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,22 @@ def test_issue_46_intent_in_schema_enum(self):
8888
enum includes every QueryIntent constant (so the GENERAL fallback
8989
no longer fails)."""
9090
from mcp_server.core.query_intent import QueryIntent
91+
9192
# The schema's broadened enum should include EVERY public string
9293
# constant on QueryIntent so the classifier can't produce an
9394
# out-of-enum value.
9495
schema_enum = {
95-
"temporal", "causal", "semantic", "entity", "knowledge_update",
96-
"multi_hop", "instruction", "event_order", "summarization",
97-
"preference", "general",
96+
"temporal",
97+
"causal",
98+
"semantic",
99+
"entity",
100+
"knowledge_update",
101+
"multi_hop",
102+
"instruction",
103+
"event_order",
104+
"summarization",
105+
"preference",
106+
"general",
98107
}
99108
for attr in dir(QueryIntent):
100109
if attr.startswith("_") or attr != attr.upper():

0 commit comments

Comments
 (0)