Repository navigation
Conversation
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| pytest-raises-with-multiple-statements | 232 | 232 | 0 | 0 | 0 |
| float-equality-comparison | 148 | 148 | 0 | 0 | 0 |
| pytest-raises-ambiguous-pattern | 143 | 143 | 0 | 0 | 0 |
| numpy-legacy-random | 97 | 97 | 0 | 0 | 0 |
| blocking-path-method-in-async-function | 89 | 89 | 0 | 0 | 0 |
| unnecessary-dunder-call | 75 | 75 | 0 | 0 | 0 |
| call-datetime-without-tzinfo | 74 | 0 | 74 | 0 | 0 |
| if-exp-instead-of-or-operator | 59 | 59 | 0 | 0 | 0 |
| missing-f-string-syntax | 39 | 39 | 0 | 0 | 0 |
| subclass-builtin | 38 | 38 | 0 | 0 | 0 |
| unnecessary-lambda | 38 | 38 | 0 | 0 | 0 |
| legacy-form-pytest-raises | 36 | 36 | 0 | 0 | 0 |
| repeated-append | 33 | 33 | 0 | 0 | 0 |
| call-datetime-now-without-tzinfo | 27 | 0 | 27 | 0 | 0 |
| slice-copy | 26 | 26 | 0 | 0 | 0 |
| none-not-at-end-of-union | 23 | 23 | 0 | 0 | 0 |
| unnecessary-dict-comprehension-for-iterable | 21 | 21 | 0 | 0 | 0 |
| escape-sequence-in-docstring | 15 | 15 | 0 | 0 | 0 |
| math-constant | 15 | 15 | 0 | 0 | 0 |
| missing-maxsplit-arg | 11 | 11 | 0 | 0 | 0 |
| fallible-context-manager | 10 | 10 | 0 | 0 | 0 |
| for-loop-set-mutations | 10 | 10 | 0 | 0 | 0 |
| logging-eager-conversion | 9 | 9 | 0 | 0 | 0 |
| pytest-patch-with-lambda | 9 | 9 | 0 | 0 | 0 |
| exec-builtin | 9 | 0 | 9 | 0 | 0 |
| meta-class-abc-meta | 8 | 8 | 0 | 0 | 0 |
| reimplemented-builtin | 7 | 7 | 0 | 0 | 0 |
| single-item-membership-test | 7 | 7 | 0 | 0 | 0 |
| useless-finally | 7 | 7 | 0 | 0 | 0 |
| unused-noqa | 7 | 7 | 0 | 0 | 0 |
| noqa-comments | 7 | 0 | 7 | 0 | 0 |
| needless-else | 6 | 6 | 0 | 0 | 0 |
| unnecessary-enumerate | 6 | 6 | 0 | 0 | 0 |
| return-in-generator | 5 | 5 | 0 | 0 | 0 |
| hardcoded-string-charset | 5 | 5 | 0 | 0 | 0 |
| call-datetime-strptime-without-zone | 5 | 0 | 5 | 0 | 0 |
| redundant-bool-literal | 3 | 3 | 0 | 0 | 0 |
| falsy-dict-get-fallback | 2 | 2 | 0 | 0 | 0 |
| fast-api-non-annotated-dependency | 2 | 2 | 0 | 0 | 0 |
| call-date-today | 2 | 0 | 2 | 0 | 0 |
| pandas-use-of-dot-is-null | 1 | 1 | 0 | 0 | 0 |
| abstract-base-class-without-abstract-method | 1 | 1 | 0 | 0 | 0 |
| empty-method-without-abstract-decorator | 1 | 1 | 0 | 0 | 0 |
| implicit-class-var-in-dataclass | 1 | 1 | 0 | 0 | 0 |
| call-datetime-fromtimestamp | 1 | 0 | 1 | 0 | 0 |
ntBre
commented
Aug 19, 2026
ntBre
commented
Aug 19, 2026
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
2 times, most recently
from
August 19, 2026 20:21
af972d1 to
e5074e2
Compare
ntBre
changed the base branch from
brent/category-selectors
to
brent/category-docs
August 19, 2026 20:23
ntBre
changed the base branch from
brent/category-docs
to
brent/rule-acceptance-guidelines
August 19, 2026 22:39
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 20, 2026 13:56
e5074e2 to
7f26ad4
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
2 times, most recently
from
August 20, 2026 14:55
af813a2 to
c87c347
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
2 times, most recently
from
August 20, 2026 19:01
a1b5d00 to
1e0e0a3
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 21, 2026 17:12
1e0e0a3 to
e0ba694
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 21, 2026 17:45
e0ba694 to
3e8471a
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 21, 2026 19:21
3e8471a to
cd035c5
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
3 times, most recently
from
August 24, 2026 14:01
cec6e47 to
e5252dc
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 25, 2026 18:51
e5252dc to
e5d5674
Compare
ntBre
marked this pull request as ready for review
August 25, 2026 19:20
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 25, 2026 21:05
e5d5674 to
458df37
Compare
MichaReiser
approved these changes
Aug 26, 2026
| /// [F841]: https://docs.astral.sh/ruff/rules/unused-variable/ | ||
| #[derive(ViolationMetadata)] | ||
| #[violation_metadata(stable_since = "0.13.0", category = Category::Correctness)] | ||
| #[violation_metadata(stable_since = "0.13.0", category = Category::Suspicious)] |
Member
There was a problem hiding this comment.
Was this based on the previous discussion when we split out the rule from unused variable?
Contributor
Author
There was a problem hiding this comment.
Yes: #8884. Alex even called it "stylistic," so we could go lower if you want. I'd personally still consider it a correctness issue like unused-variable, but the _ dummy variable convention doesn't seem widely accepted enough in Python, at least based on our ecosystem results.
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 26, 2026 18:57
458df37 to
c221ce5
Compare
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 26, 2026 22:48
f9aafcb to
eb0752a
Compare
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
ntBre
force-pushed
the
brent/update-preview-category-defaults
branch
from
August 27, 2026 13:20
97de6bc to
8e03ca8
Compare
sharkdp
pushed a commit
that referenced
this pull request
Aug 31, 2026
## Summary These are the last five commits from #27666 that update the preview default selectors based on the new categorization: - add current preview rules to the default selectors - add third-party rules to the default selectors - add preview rules stabilized in 0.15 to the default selectors (oops) - incorporate the DTZ and F406 changes from #27213 - adjust 4 categories that genuinely differ between my previous and current categorizations ## Test Plan Updated default rules snapshot
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These are the last five commits from #27666 that update the preview default selectors based on the new categorization:
Test Plan
Updated default rules snapshot