Skip to content

Fix lint CI: migrate ruff suppressions from noqa to ruff: ignore - #46

Merged
saudzahirr merged 1 commit into
masterfrom
fix/ci-failures
Aug 5, 2026
Merged

Fix lint CI: migrate ruff suppressions from noqa to ruff: ignore#46
saudzahirr merged 1 commit into
masterfrom
fix/ci-failures

Conversation

@saudzahirr

Copy link
Copy Markdown
Collaborator

Lint

ruff 0.16 added three preview rules. These configs set preview = true and
use an unpinned astral-sh/ruff-action@v3, so CI went red with no change on
our side:

Rule Migration
RUF105 noqa-comments # noqa: X# ruff: ignore[X]
RUF106 rule-codes-in-suppression-comments code → readable name
RUF201 rule-codes-in-selectors same, for per-file-ignores

Suppressions now name the rule they silence, e.g.
# noqa: PLW3201# ruff: ignore[bad-dunder-method-name].

Fixes were scoped to exactly these three rules rather than a blanket
--fix: ruff's autofix mangles malformed input, turning # noqa RUF067
(missing colon) into # ruff: ignore[...] RUF067 with stray trailing text.
Comments and config selectors only — no behavioural change.

Verification

ruff check and ruff format --diff both pass using this workflow's own
command, and the test suite passes locally via uv.

Not verified: the macOS steps could not be exercised locally (no macOS
runner). Worth watching the first CI run on this PR.

🤖 Generated with Claude Code

ruff 0.16 added three preview rules that these configs opt into via
`preview = true`, turning CI red without any change on our side:

  RUF105 noqa-comments                  # noqa: X -> # ruff: ignore[X]
  RUF106 rule-codes-in-suppression-comments   code -> readable name
  RUF201 rule-codes-in-selectors        same, for per-file-ignores

Suppressions now name the rule they silence, so they read without a
lookup table. No behavioural change - comments and config selectors only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

@saudzahirr saudzahirr self-assigned this Aug 5, 2026
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@saudzahirr
saudzahirr merged commit 1773ef3 into master Aug 5, 2026
18 checks passed
@saudzahirr
saudzahirr deleted the fix/ci-failures branch August 5, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant