Skip to content

Commit 761b023

Browse files
cdeustclaude
andcommitted
style: ruff format on workflow_graph_source_ast.py
CI's lint stage rejected the prior commit; this is a no-op format pass to satisfy ``ruff format --check``. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f2b9f99 commit 761b023

1 file changed

Lines changed: 26 additions & 12 deletions

File tree

mcp_server/infrastructure/workflow_graph_source_ast.py

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -547,16 +547,22 @@ async def _load_edges_async(
547547
# the codebase actually contains: every File→Class / File→
548548
# Interface / File→TypeAlias / File→Macro etc. edge was being
549549
# silently dropped because its rel table was never queried.
550-
_CALL_LABELS = ("Function", "Method", "Macro")
550+
_CALL_LABELS = ("Function", "Method", "Macro")
551551
_IMPORT_TARGETS = _SYMBOL_LABELS # File can import any symbol kind
552552
_CONTAINER_LBLS = (
553-
"Struct", "Enum", "Trait",
554-
"Class", "Interface", "Protocol", "Extension", "Union",
553+
"Struct",
554+
"Enum",
555+
"Trait",
556+
"Class",
557+
"Interface",
558+
"Protocol",
559+
"Extension",
560+
"Union",
555561
)
556-
_MEMBER_LBLS = ("Method", "Field", "Property", "Constant", "TypeAlias")
557-
calls_rels = [(s, d) for s in _CALL_LABELS for d in _CALL_LABELS]
562+
_MEMBER_LBLS = ("Method", "Field", "Property", "Constant", "TypeAlias")
563+
calls_rels = [(s, d) for s in _CALL_LABELS for d in _CALL_LABELS]
558564
imports_rels = [("File", t) for t in _IMPORT_TARGETS]
559-
member_rels = [(s, d) for s in _CONTAINER_LBLS for d in _MEMBER_LBLS]
565+
member_rels = [(s, d) for s in _CONTAINER_LBLS for d in _MEMBER_LBLS]
560566

561567
def _match(file_part: str) -> bool:
562568
if not path_tails:
@@ -673,21 +679,29 @@ async def _run_edge(
673679
# subset that AP managed to RESOLVE to in-graph symbols (the
674680
# ``Imports_File_*`` tables, totalling ~5k vs ~36k actual).
675681
await _run_edge(
676-
"imports", "Defines_File_Import", "File", "Import",
682+
"imports",
683+
"Defines_File_Import",
684+
"File",
685+
"Import",
677686
has_provenance=False,
678687
)
679688
# Type-usage edges (Method/Function uses Struct/Class/etc).
680689
# Captured by AP's resolver and exposed as ``Uses_<src>_<dst>``.
681690
_USES_SRC = ("Method", "Function")
682691
_USES_DST = (
683-
"Struct", "Enum", "Trait", "Class", "Interface",
684-
"Protocol", "Extension", "Union", "TypeAlias",
692+
"Struct",
693+
"Enum",
694+
"Trait",
695+
"Class",
696+
"Interface",
697+
"Protocol",
698+
"Extension",
699+
"Union",
700+
"TypeAlias",
685701
)
686702
for s in _USES_SRC:
687703
for d in _USES_DST:
688-
await _run_edge(
689-
"uses", f"Uses_{s}_{d}", s, d, has_provenance=True
690-
)
704+
await _run_edge("uses", f"Uses_{s}_{d}", s, d, has_provenance=True)
691705
return out
692706

693707

0 commit comments

Comments
 (0)