Skip to content

feat: drop rule groups Ruff 0.16 selects by default - #843

Open
henryiii wants to merge 1 commit into
mainfrom
chore/ruff-016-defaults
Open

feat: drop rule groups Ruff 0.16 selects by default#843
henryiii wants to merge 1 commit into
mainfrom
chore/ruff-016-defaults

Conversation

@henryiii

@henryiii henryiii commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Ruff 0.16 turns on 413 rules without configuration. Compared the default set against the full rule index: BLE, DTZ, FA, FLY, INT, PIE, and YTT are fully covered (including preview rules), and I is covered except for I002, which needs the lint.isort.required-imports setting. No other group is fully covered.

  • Removed these groups from the cookie's extend-select and from both example configs in the style guide.
  • Removed the RF102 check ("isort must be selected"). RF101 (B) and RF103 (UP) stay, because those groups are not fully default.
  • sp-ruff-checks no longer suggests the default groups under "Unselected". If a config still selects one, it is now listed under "Selected, but on by default (safe to remove)".

linter.json is unchanged: Ruff 0.16 adds and removes no linter prefixes.


📚 Documentation preview 📚: https://scientific-python-cookie--843.org.readthedocs.build/

Ruff 0.16 enables 413 rules without configuration. `BLE`, `DTZ`, `FA`,
`FLY`, `INT`, `PIE`, and `YTT` are fully covered, and `I` is covered
except for `I002`, which needs the `required-imports` setting.

Remove these from the cookie and the style guide, remove the `RF102`
check, and teach `sp-ruff-checks` to report them as safe to remove
instead of suggesting them.

Assisted-by: ClaudeCode:claude-opus-5
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