Skip to content

fix(lint): register SRC006 in ruff's external list (re-land of a lost commit) - #3793

Merged
zackees merged 1 commit into
masterfrom
fix/register-src006-ruff-external
Aug 1, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/register-src006-ruff-external

Conversation

@zackees

@zackees zackees commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

Re-lands the SRC006 registration that was lost in #3792's merge.

What happened

CodeRabbit correctly flagged that external in pyproject.toml listed SRC001–SRC005 but not SRC006 — the code #3792 itself adds — while ci/tests/test_subprocess_deadlock_rules.py:132 uses # noqa: SRC006. Without registration ruff reads that as an unused suppression.

I fixed it in 6cc913ad07, pushed, and replied on the review thread saying it was fixed. But #3792's squash merge captured branch state that did not include that commit:

$ git merge-base --is-ancestor 6cc913ad07 master
NO
$ grep external -A 4 pyproject.toml
    "SRC001", "SRC002", "SRC003", "SRC004", "SRC005",     # no SRC006

So my reply was inaccurate the moment it was written.

This is the second time in this session a post-review commit was silently dropped by a merge — the first was #3787, re-landed as #3788. Both times gh pr merge reported success, and both times the branch survived --delete-branch. Worth knowing before trusting that command's own output; I now diff against master afterwards, which is how this was caught.

Impact

Master is not actively broken: ruff's unused-noqa rule (RUF100) is not currently in the enabled set, so bash lint passes today. The registration still matters — it is what makes the suppression honoured if RUF100 is ever enabled, and it keeps the list truthful about which custom codes exist.

Verification

One line changed. bash lint → python_pipeline passes.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Registered the Ruff SRC006 lint code for external checking.

SRC001-SRC005 were listed but SRC006 -- the code added in this same PR -- was
not, so ruff would read the `# noqa: SRC006` in
ci/tests/test_subprocess_deadlock_rules.py as an unused suppression.

Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5ad5b10b-23f7-498e-9489-a45492e6bf67

📥 Commits

Reviewing files that changed from the base of the PR and between f64e97c and aa56314.

📒 Files selected for processing (1)
  • pyproject.toml

📝 Walkthrough

Walkthrough

The Ruff external checker allowlist now includes SRC006 while retaining SRC001 through SRC005.

Changes

Ruff lint allowlist

Layer / File(s) Summary
Register SRC006
pyproject.toml
The external checker allowlist adds SRC006 and retains the existing codes.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the registration of SRC006 in Ruff's external list.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/register-src006-ruff-external

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit 0a8bb91 into master Aug 1, 2026
11 of 14 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 1, 2026
@zackees
zackees deleted the fix/register-src006-ruff-external branch August 1, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant