diff --git a/crates/ruff_linter/src/codes.rs b/crates/ruff_linter/src/codes.rs index 94d3bd0eaf..0770e8aec0 100644 --- a/crates/ruff_linter/src/codes.rs +++ b/crates/ruff_linter/src/codes.rs @@ -563,7 +563,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> { (Pyupgrade, "035") => (RuleGroup::Stable, rules::pyupgrade::rules::DeprecatedImport), (Pyupgrade, "036") => (RuleGroup::Stable, rules::pyupgrade::rules::OutdatedVersionBlock), (Pyupgrade, "037") => (RuleGroup::Stable, rules::pyupgrade::rules::QuotedAnnotation), - (Pyupgrade, "038") => (RuleGroup::Deprecated, rules::pyupgrade::rules::NonPEP604Isinstance), + (Pyupgrade, "038") => (RuleGroup::Removed, rules::pyupgrade::rules::NonPEP604Isinstance), (Pyupgrade, "039") => (RuleGroup::Stable, rules::pyupgrade::rules::UnnecessaryClassParentheses), (Pyupgrade, "040") => (RuleGroup::Stable, rules::pyupgrade::rules::NonPEP695TypeAlias), (Pyupgrade, "041") => (RuleGroup::Stable, rules::pyupgrade::rules::TimeoutErrorAlias), diff --git a/crates/ruff_linter/src/rules/pyupgrade/rules/use_pep604_isinstance.rs b/crates/ruff_linter/src/rules/pyupgrade/rules/use_pep604_isinstance.rs index 2e0f08638b..17f50ab99a 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/rules/use_pep604_isinstance.rs +++ b/crates/ruff_linter/src/rules/pyupgrade/rules/use_pep604_isinstance.rs @@ -33,8 +33,8 @@ impl CallKind { } } -/// ## Deprecation -/// This rule was deprecated as using [PEP 604] syntax in `isinstance` and `issubclass` calls +/// ## Removed +/// This rule was removed as using [PEP 604] syntax in `isinstance` and `issubclass` calls /// isn't recommended practice, and it incorrectly suggests that other typing syntaxes like [PEP 695] /// would be supported by `isinstance` and `issubclass`. Using the [PEP 604] syntax /// is also slightly slower. diff --git a/python/py-fuzzer/pyproject.toml b/python/py-fuzzer/pyproject.toml index d6e380395a..020f91b899 100644 --- a/python/py-fuzzer/pyproject.toml +++ b/python/py-fuzzer/pyproject.toml @@ -62,9 +62,6 @@ ignore = [ # These are enforced by, or incompatible with, the ruff formatter: "E203", "E501", - # Makes code slower and more verbose - # https://github.com/astral-sh/ruff/issues/7871 - "UP038", ] unfixable = [ "F841", # unused variable. ruff keeps the call, but mostly it's best to get rid of it all diff --git a/ruff.schema.json b/ruff.schema.json index e9f69f5fb0..dc3585c974 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -4306,7 +4306,6 @@ "UP035", "UP036", "UP037", - "UP038", "UP039", "UP04", "UP040",