ruff/crates/ruff_linter/src
Brent Westbrook 18a134ae1f [ruff] Stabilize class-with-mixed-type-vars (RUF053) (#18512)
This PR stabilizes the RUF053 rule by moving it from preview to stable
status for the 0.12.0 release.

## Summary
- **Rule**: RUF053 (`class-with-mixed-type-vars`)
- **Purpose**: Detects classes that have both PEP 695 type parameter
lists while also inheriting from `typing.Generic`
- **Change**: Move from `RuleGroup::Preview` to `RuleGroup::Stable` in
`codes.rs` and migrate preview tests to stable tests

## Verification Links
- **Tests**:
[ruff/mod.rs](https://github.com/astral-sh/ruff/blob/main/crates/ruff_linter/src/rules/ruff/mod.rs#L98)
- Shows RUF053 moved from preview_rules to main rules test function
- **Documentation**:
https://docs.astral.sh/ruff/rules/class-with-mixed-type-vars/ - Current
documentation shows preview status that will be automatically updated
2025-06-17 09:58:12 -04:00
..
checkers [ruff] Check for non-context-manager use of pytest.raises, pytest.warns, and pytest.deprecated_call (RUF061) (#17368) 2025-06-16 13:03:54 -04:00
comments
cst Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
docstrings [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
fix [flake8-pyi] Avoid syntax error in the case of starred and keyword arguments (PYI059) (#18611) 2025-06-10 12:27:06 -04:00
importer [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
message Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
registry Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
rules [ruff] Stabilize class-with-mixed-type-vars (RUF053) (#18512) 2025-06-17 09:58:12 -04:00
settings Add a ViolationMetadata::rule method (#18234) 2025-05-28 09:27:09 -04:00
snapshots [semantic-syntax-tests] IrrefutableCasePattern, SingleStarredAssignment, WriteToDebug, InvalidExpression (#17748) 2025-05-09 14:54:05 -04:00
codes.rs [ruff] Stabilize class-with-mixed-type-vars (RUF053) (#18512) 2025-06-17 09:58:12 -04:00
diagnostic.rs Add a SourceFile to OldDiagnostic (#18356) 2025-05-30 13:34:38 +00:00
directives.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
doc_lines.rs [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
fs.rs
lib.rs Rename ruff_linter::Diagnostic to OldDiagnostic (#18355) 2025-05-29 15:04:31 -04:00
line_width.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
linter.rs Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
locator.rs Split SourceLocation into LineColumn and SourceLocation (#17587) 2025-04-27 11:27:33 +01:00
logging.rs Use #[expect(lint)] over #[allow(lint)] where possible (#17822) 2025-05-03 21:20:31 +02:00
noqa.rs Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
package.rs
packaging.rs
preview.rs [ruff] Stabilize checking in presence of slices for collection-literal-concatenation (RUF005) (#18500) 2025-06-17 09:58:12 -04:00
pyproject_toml.rs Add a SourceFile to OldDiagnostic (#18356) 2025-05-30 13:34:38 +00:00
registry.rs Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
renamer.rs Add a ViolationMetadata::rule method (#18234) 2025-05-28 09:27:09 -04:00
rule_redirects.rs
rule_selector.rs Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
source_kind.rs Update MSRV to 1.85 and toolchain to 1.87 (#18126) 2025-05-16 09:19:55 +02:00
test.rs Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
text_helpers.rs
upstream_categories.rs
violation.rs Add a ViolationMetadata::rule method (#18234) 2025-05-28 09:27:09 -04:00