Skip to content

Conversation

@ntBre
Copy link
Contributor

@ntBre ntBre commented Dec 25, 2025

Summary

While analyzing our rules, I wanted to know which of them use configuration options but noticed that some of them were not documented (or at least not documented in a separate ## Options section).

I had Claude generate an initial list of candidate rules, but it contained a lot of false positives that I filtered out, and I ended up adding all of these sections myself. I'm not claiming that the options lists are exhaustive (as in the rules may use additional options beyond what I found), but this will at least help with my goal of determining whether or not a rule is configurable at all and also hopefully be helpful in general.

I mostly just tacked on an ## Options section without any commentary, but I added a couple lines of explanation when I felt that the meaning of the options wasn't obvious from the context.

I also noticed a bit of variation in the flake8-simplify rules from doing this. Some of them offer a diagnostic but no fix depending on the resulting line length of the suggestion, while others offer neither. I'm not sure we need to do anything different here, but it seemed worth mentioning.

Test Plan

Docs tests to make sure the links are right

Summary
--

While analyzing our rules, I wanted to know which of them use configuration
options but noticed that some of them were not documented (or at least not
documented in a separate `## Options` section).

I had Claude generate an initial list of candidate rules, but it contained a lot
of false positives that I filtered out, and I ended up adding all of these
sections myself. I'm not claiming that the options lists are exhaustive (as in
the rules may use additional options beyond what I found), but this will at
least help with my goal of determining whether or not a rule is configurable at
all and also hopefully be helpful in general.

I mostly just tacked on an `## Options` section without any commentary, but I
added a couple lines of explanation when I felt it wasn't obvious from the
context.

I also noticed a bit of variation in the `flake8-simplify` rules from doing
this. Some of them offer a diagnostic but no fix depending on the resulting line
length of the suggestion, while others offer neither. I'm not sure we need to do
anything different here, but it seemed worth mentioning.

Test Plan
--

Docs tests to make sure the links are right
@ntBre ntBre added the documentation Improvements or additions to documentation label Dec 25, 2025
@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 25, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre marked this pull request as ready for review December 25, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants