From ee157159561dbdd59d375797591d8c237f37d8f7 Mon Sep 17 00:00:00 2001 From: Alexazhu Date: Tue, 5 May 2026 09:25:05 +0800 Subject: [PATCH] ci(weighted-edges): drop '/**' from ruff-action args so paths resolve The weighted_edges_tests quality-gate job invokes astral-sh/ruff-action with args containing 'm_flow/knowledge/graph_ops/**'. ruff-action passes the string directly to ruff without shell glob expansion, so ruff treats '/**' as a literal path component and fails with: E902 No such file or directory (os error 2) --> m_flow/knowledge/graph_ops/**:1:1 ruff already recurses into directories, so passing the plain directory path 'm_flow/knowledge/graph_ops' is the standard idiom and matches how the upstream ruff-action examples are written. Verified locally with ruff 0.15.10 (lockfile-pinned version): $ uvx ruff@0.15.10 check m_flow/knowledge/graph_ops \ m_flow/tests/unit/interfaces/graph/test_weighted_edges.py \ examples/python/weighted_edges_example.py All checks passed! $ uvx ruff@0.15.10 format --check ... 17 files already formatted Signed-off-by: Alexazhu --- .github/workflows/weighted_edges_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/weighted_edges_tests.yml b/.github/workflows/weighted_edges_tests.yml index 7b8902f..0271fd2 100644 --- a/.github/workflows/weighted_edges_tests.yml +++ b/.github/workflows/weighted_edges_tests.yml @@ -57,12 +57,12 @@ jobs: - name: "Ruff lint pass" uses: astral-sh/ruff-action@f2e32211077f40bfeab40e16285216924ebea4cb # v2 with: - args: "check m_flow/knowledge/graph_ops/** m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py" + args: "check m_flow/knowledge/graph_ops m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py" - name: "Ruff format pass" uses: astral-sh/ruff-action@f2e32211077f40bfeab40e16285216924ebea4cb # v2 with: - args: "format --check m_flow/knowledge/graph_ops/** m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py" + args: "format --check m_flow/knowledge/graph_ops m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py" # ── Stage 2: unit regression across Python versions ──────────────────── unit-regression: