Skip to content

Commit ee15715

Browse files
committed
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 <alexazzjjtt@163.com>
1 parent 84dc713 commit ee15715

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/weighted_edges_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ jobs:
5757
- name: "Ruff lint pass"
5858
uses: astral-sh/ruff-action@f2e32211077f40bfeab40e16285216924ebea4cb # v2
5959
with:
60-
args: "check m_flow/knowledge/graph_ops/** m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py"
60+
args: "check m_flow/knowledge/graph_ops m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py"
6161

6262
- name: "Ruff format pass"
6363
uses: astral-sh/ruff-action@f2e32211077f40bfeab40e16285216924ebea4cb # v2
6464
with:
65-
args: "format --check m_flow/knowledge/graph_ops/** m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py"
65+
args: "format --check m_flow/knowledge/graph_ops m_flow/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py"
6666

6767
# ── Stage 2: unit regression across Python versions ────────────────────
6868
unit-regression:

0 commit comments

Comments
 (0)