Skip to content

chore: pin ruff lint select to E/F, unpin ruff version - #277

Merged
kferrone merged 2 commits into
mainfrom
chore/pin-ruff-select
Aug 10, 2026
Merged

chore: pin ruff lint select to E/F, unpin ruff version#277
kferrone merged 2 commits into
mainfrom
chore/pin-ruff-select

Conversation

@bennett-elder

Copy link
Copy Markdown
Contributor

Describe Changes

Root cause: the repo had no explicit ruff select, so linting floated on ruff's implicit default. ruff 0.16 broadened that default substantially (turned on B/UP/I/PL/RUF/DTZ/… by default). Same config, same tree: 0.15 flagged 2, 0.16 flagged ~190 — which is why #275 had to pin ruff<0.16 to keep CI green.

This makes the rule set explicit instead of inherited:

  • Pin [tool.ruff.lint] select = ["E4", "E7", "E9", "F"] — the historical E/F default. The enforced rules no longer change when ruff's defaults change, so a future ruff release can't silently break CI again.
  • Unpin the ruff version (ruff<0.16ruff).

ruff check ./src passes under ruff 0.16 with no code changes.

Deliberately out of scope: adopting 0.16's new rule families (bugbear, pyupgrade, isort, pylint, …). That's an intentional decision, not something to inherit by accident — broaden select when the team wants those rules and fix/ignore each on purpose.

Link to Issues

Follow-up to #275.

PR Review Checklist

  • Thoroughly reviewed on local machine. ruff check ./src passes under ruff 0.16 with the explicit select; src is unchanged so the unit suite is unchanged from main.
  • Have you added any tests — n/a, lint-config only.
  • Make sure to note changes in Changelog.

@bennett-elder
bennett-elder requested a review from kferrone July 29, 2026 15:21
@qodo-code-review

Copy link
Copy Markdown
Contributor

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@duploctl

duploctl Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5017 2929 58% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 284cf3b by action🐍

@kferrone kferrone left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kferrone
kferrone merged commit f98207e into main Aug 10, 2026
7 checks passed
@kferrone
kferrone deleted the chore/pin-ruff-select branch August 10, 2026 19:03
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.

2 participants