@@ -311,11 +311,11 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
311
311
( Flake8Async , "102" ) => ( RuleGroup :: Stable , rules:: flake8_async:: rules:: BlockingOsCallInAsyncFunction ) ,
312
312
313
313
// flake8-trio
314
- ( Flake8Trio , "100" ) => ( RuleGroup :: Preview , rules:: flake8_trio:: rules:: TrioTimeoutWithoutAwait ) ,
315
- ( Flake8Trio , "105" ) => ( RuleGroup :: Preview , rules:: flake8_trio:: rules:: TrioSyncCall ) ,
316
- ( Flake8Trio , "109" ) => ( RuleGroup :: Preview , rules:: flake8_trio:: rules:: TrioAsyncFunctionWithTimeout ) ,
317
- ( Flake8Trio , "110" ) => ( RuleGroup :: Preview , rules:: flake8_trio:: rules:: TrioUnneededSleep ) ,
318
- ( Flake8Trio , "115" ) => ( RuleGroup :: Preview , rules:: flake8_trio:: rules:: TrioZeroSleepCall ) ,
314
+ ( Flake8Trio , "100" ) => ( RuleGroup :: Stable , rules:: flake8_trio:: rules:: TrioTimeoutWithoutAwait ) ,
315
+ ( Flake8Trio , "105" ) => ( RuleGroup :: Stable , rules:: flake8_trio:: rules:: TrioSyncCall ) ,
316
+ ( Flake8Trio , "109" ) => ( RuleGroup :: Stable , rules:: flake8_trio:: rules:: TrioAsyncFunctionWithTimeout ) ,
317
+ ( Flake8Trio , "110" ) => ( RuleGroup :: Stable , rules:: flake8_trio:: rules:: TrioUnneededSleep ) ,
318
+ ( Flake8Trio , "115" ) => ( RuleGroup :: Stable , rules:: flake8_trio:: rules:: TrioZeroSleepCall ) ,
319
319
320
320
// flake8-builtins
321
321
( Flake8Builtins , "001" ) => ( RuleGroup :: Stable , rules:: flake8_builtins:: rules:: BuiltinVariableShadowing ) ,
@@ -423,7 +423,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
423
423
( Flake8Quotes , "001" ) => ( RuleGroup :: Stable , rules:: flake8_quotes:: rules:: BadQuotesMultilineString ) ,
424
424
( Flake8Quotes , "002" ) => ( RuleGroup :: Stable , rules:: flake8_quotes:: rules:: BadQuotesDocstring ) ,
425
425
( Flake8Quotes , "003" ) => ( RuleGroup :: Stable , rules:: flake8_quotes:: rules:: AvoidableEscapedQuote ) ,
426
- ( Flake8Quotes , "004" ) => ( RuleGroup :: Preview , rules:: flake8_quotes:: rules:: UnnecessaryEscapedQuote ) ,
426
+ ( Flake8Quotes , "004" ) => ( RuleGroup :: Stable , rules:: flake8_quotes:: rules:: UnnecessaryEscapedQuote ) ,
427
427
428
428
// flake8-annotations
429
429
( Flake8Annotations , "001" ) => ( RuleGroup :: Stable , rules:: flake8_annotations:: rules:: MissingTypeFunctionArgument ) ,
@@ -464,7 +464,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
464
464
( Flake8Simplify , "109" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: CompareWithTuple ) ,
465
465
( Flake8Simplify , "110" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: ReimplementedBuiltin ) ,
466
466
( Flake8Simplify , "112" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: UncapitalizedEnvironmentVariables ) ,
467
- ( Flake8Simplify , "113" ) => ( RuleGroup :: Preview , rules:: flake8_simplify:: rules:: EnumerateForLoop ) ,
467
+ ( Flake8Simplify , "113" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: EnumerateForLoop ) ,
468
468
( Flake8Simplify , "114" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: IfWithSameArms ) ,
469
469
( Flake8Simplify , "115" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: OpenFileWithContextHandler ) ,
470
470
( Flake8Simplify , "116" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: IfElseBlockInsteadOfDictLookup ) ,
@@ -483,7 +483,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
483
483
( Flake8Simplify , "300" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: YodaConditions ) ,
484
484
( Flake8Simplify , "401" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: IfElseBlockInsteadOfDictGet ) ,
485
485
( Flake8Simplify , "910" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: DictGetWithNoneDefault ) ,
486
- ( Flake8Simplify , "911" ) => ( RuleGroup :: Preview , rules:: flake8_simplify:: rules:: ZipDictKeysAndValues ) ,
486
+ ( Flake8Simplify , "911" ) => ( RuleGroup :: Stable , rules:: flake8_simplify:: rules:: ZipDictKeysAndValues ) ,
487
487
488
488
// flake8-copyright
489
489
#[ allow( deprecated) ]
@@ -528,7 +528,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
528
528
( Pyupgrade , "038" ) => ( RuleGroup :: Stable , rules:: pyupgrade:: rules:: NonPEP604Isinstance ) ,
529
529
( Pyupgrade , "039" ) => ( RuleGroup :: Stable , rules:: pyupgrade:: rules:: UnnecessaryClassParentheses ) ,
530
530
( Pyupgrade , "040" ) => ( RuleGroup :: Stable , rules:: pyupgrade:: rules:: NonPEP695TypeAlias ) ,
531
- ( Pyupgrade , "041" ) => ( RuleGroup :: Preview , rules:: pyupgrade:: rules:: TimeoutErrorAlias ) ,
531
+ ( Pyupgrade , "041" ) => ( RuleGroup :: Stable , rules:: pyupgrade:: rules:: TimeoutErrorAlias ) ,
532
532
533
533
// pydocstyle
534
534
( Pydocstyle , "100" ) => ( RuleGroup :: Stable , rules:: pydocstyle:: rules:: UndocumentedPublicModule ) ,
@@ -615,8 +615,8 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
615
615
( Flake8Bandit , "110" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: TryExceptPass ) ,
616
616
( Flake8Bandit , "112" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: TryExceptContinue ) ,
617
617
( Flake8Bandit , "113" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: RequestWithoutTimeout ) ,
618
- ( Flake8Bandit , "201" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: FlaskDebugTrue ) ,
619
- ( Flake8Bandit , "202" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: TarfileUnsafeMembers ) ,
618
+ ( Flake8Bandit , "201" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: FlaskDebugTrue ) ,
619
+ ( Flake8Bandit , "202" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: TarfileUnsafeMembers ) ,
620
620
( Flake8Bandit , "301" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SuspiciousPickleUsage ) ,
621
621
( Flake8Bandit , "302" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SuspiciousMarshalUsage ) ,
622
622
( Flake8Bandit , "303" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SuspiciousInsecureHashUsage ) ,
@@ -654,12 +654,12 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
654
654
( Flake8Bandit , "413" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: SuspiciousPycryptoImport ) ,
655
655
( Flake8Bandit , "415" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: SuspiciousPyghmiImport ) ,
656
656
( Flake8Bandit , "501" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: RequestWithNoCertValidation ) ,
657
- ( Flake8Bandit , "502" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: SslInsecureVersion ) ,
658
- ( Flake8Bandit , "503" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: SslWithBadDefaults ) ,
659
- ( Flake8Bandit , "504" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: SslWithNoVersion ) ,
660
- ( Flake8Bandit , "505" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: WeakCryptographicKey ) ,
657
+ ( Flake8Bandit , "502" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SslInsecureVersion ) ,
658
+ ( Flake8Bandit , "503" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SslWithBadDefaults ) ,
659
+ ( Flake8Bandit , "504" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SslWithNoVersion ) ,
660
+ ( Flake8Bandit , "505" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: WeakCryptographicKey ) ,
661
661
( Flake8Bandit , "506" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: UnsafeYAMLLoad ) ,
662
- ( Flake8Bandit , "507" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: SSHNoHostKeyVerification ) ,
662
+ ( Flake8Bandit , "507" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SSHNoHostKeyVerification ) ,
663
663
( Flake8Bandit , "508" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SnmpInsecureVersion ) ,
664
664
( Flake8Bandit , "509" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: SnmpWeakCryptography ) ,
665
665
( Flake8Bandit , "601" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: ParamikoCall ) ,
@@ -671,10 +671,10 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
671
671
( Flake8Bandit , "607" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: StartProcessWithPartialPath ) ,
672
672
( Flake8Bandit , "608" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: HardcodedSQLExpression ) ,
673
673
( Flake8Bandit , "609" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: UnixCommandWildcardInjection ) ,
674
- ( Flake8Bandit , "611" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: DjangoRawSql ) ,
674
+ ( Flake8Bandit , "611" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: DjangoRawSql ) ,
675
675
( Flake8Bandit , "612" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: LoggingConfigInsecureListen ) ,
676
676
( Flake8Bandit , "701" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: Jinja2AutoescapeFalse ) ,
677
- ( Flake8Bandit , "702" ) => ( RuleGroup :: Preview , rules:: flake8_bandit:: rules:: MakoTemplates ) ,
677
+ ( Flake8Bandit , "702" ) => ( RuleGroup :: Stable , rules:: flake8_bandit:: rules:: MakoTemplates ) ,
678
678
679
679
// flake8-boolean-trap
680
680
( Flake8BooleanTrap , "001" ) => ( RuleGroup :: Stable , rules:: flake8_boolean_trap:: rules:: BooleanTypeHintPositionalArgument ) ,
@@ -779,7 +779,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
779
779
( Flake8Pyi , "053" ) => ( RuleGroup :: Stable , rules:: flake8_pyi:: rules:: StringOrBytesTooLong ) ,
780
780
( Flake8Pyi , "055" ) => ( RuleGroup :: Stable , rules:: flake8_pyi:: rules:: UnnecessaryTypeUnion ) ,
781
781
( Flake8Pyi , "056" ) => ( RuleGroup :: Stable , rules:: flake8_pyi:: rules:: UnsupportedMethodCallOnAll ) ,
782
- ( Flake8Pyi , "058" ) => ( RuleGroup :: Preview , rules:: flake8_pyi:: rules:: GeneratorReturnFromIterMethod ) ,
782
+ ( Flake8Pyi , "058" ) => ( RuleGroup :: Stable , rules:: flake8_pyi:: rules:: GeneratorReturnFromIterMethod ) ,
783
783
784
784
// flake8-pytest-style
785
785
( Flake8PytestStyle , "001" ) => ( RuleGroup :: Stable , rules:: flake8_pytest_style:: rules:: PytestFixtureIncorrectParenthesesStyle ) ,
@@ -841,7 +841,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
841
841
( Flake8TypeChecking , "003" ) => ( RuleGroup :: Stable , rules:: flake8_type_checking:: rules:: TypingOnlyStandardLibraryImport ) ,
842
842
( Flake8TypeChecking , "004" ) => ( RuleGroup :: Stable , rules:: flake8_type_checking:: rules:: RuntimeImportInTypeCheckingBlock ) ,
843
843
( Flake8TypeChecking , "005" ) => ( RuleGroup :: Stable , rules:: flake8_type_checking:: rules:: EmptyTypeCheckingBlock ) ,
844
- ( Flake8TypeChecking , "006" ) => ( RuleGroup :: Preview , rules:: flake8_type_checking:: rules:: RuntimeStringUnion ) ,
844
+ ( Flake8TypeChecking , "006" ) => ( RuleGroup :: Stable , rules:: flake8_type_checking:: rules:: RuntimeStringUnion ) ,
845
845
846
846
// tryceratops
847
847
( Tryceratops , "002" ) => ( RuleGroup :: Stable , rules:: tryceratops:: rules:: RaiseVanillaClass ) ,
@@ -910,7 +910,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
910
910
( Numpy , "001" ) => ( RuleGroup :: Stable , rules:: numpy:: rules:: NumpyDeprecatedTypeAlias ) ,
911
911
( Numpy , "002" ) => ( RuleGroup :: Stable , rules:: numpy:: rules:: NumpyLegacyRandom ) ,
912
912
( Numpy , "003" ) => ( RuleGroup :: Stable , rules:: numpy:: rules:: NumpyDeprecatedFunction ) ,
913
- ( Numpy , "201" ) => ( RuleGroup :: Preview , rules:: numpy:: rules:: Numpy2Deprecation ) ,
913
+ ( Numpy , "201" ) => ( RuleGroup :: Stable , rules:: numpy:: rules:: Numpy2Deprecation ) ,
914
914
915
915
// ruff
916
916
( Ruff , "001" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: AmbiguousUnicodeCharacterString ) ,
@@ -926,11 +926,10 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
926
926
( Ruff , "013" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: ImplicitOptional ) ,
927
927
( Ruff , "015" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: UnnecessaryIterableAllocationForFirstElement ) ,
928
928
( Ruff , "016" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: InvalidIndexType ) ,
929
- #[ allow( deprecated) ]
930
- ( Ruff , "017" ) => ( RuleGroup :: Nursery , rules:: ruff:: rules:: QuadraticListSummation ) ,
931
- ( Ruff , "018" ) => ( RuleGroup :: Preview , rules:: ruff:: rules:: AssignmentInAssert ) ,
932
- ( Ruff , "019" ) => ( RuleGroup :: Preview , rules:: ruff:: rules:: UnnecessaryKeyCheck ) ,
933
- ( Ruff , "020" ) => ( RuleGroup :: Preview , rules:: ruff:: rules:: NeverUnion ) ,
929
+ ( Ruff , "017" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: QuadraticListSummation ) ,
930
+ ( Ruff , "018" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: AssignmentInAssert ) ,
931
+ ( Ruff , "019" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: UnnecessaryKeyCheck ) ,
932
+ ( Ruff , "020" ) => ( RuleGroup :: Stable , rules:: ruff:: rules:: NeverUnion ) ,
934
933
( Ruff , "021" ) => ( RuleGroup :: Preview , rules:: ruff:: rules:: ParenthesizeChainedOperators ) ,
935
934
( Ruff , "022" ) => ( RuleGroup :: Preview , rules:: ruff:: rules:: UnsortedDunderAll ) ,
936
935
( Ruff , "023" ) => ( RuleGroup :: Preview , rules:: ruff:: rules:: UnsortedDunderSlots ) ,
@@ -1024,10 +1023,10 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
1024
1023
( Refurb , "181" ) => ( RuleGroup :: Preview , rules:: refurb:: rules:: HashlibDigestHex ) ,
1025
1024
1026
1025
// flake8-logging
1027
- ( Flake8Logging , "001" ) => ( RuleGroup :: Preview , rules:: flake8_logging:: rules:: DirectLoggerInstantiation ) ,
1028
- ( Flake8Logging , "002" ) => ( RuleGroup :: Preview , rules:: flake8_logging:: rules:: InvalidGetLoggerArgument ) ,
1029
- ( Flake8Logging , "007" ) => ( RuleGroup :: Preview , rules:: flake8_logging:: rules:: ExceptionWithoutExcInfo ) ,
1030
- ( Flake8Logging , "009" ) => ( RuleGroup :: Preview , rules:: flake8_logging:: rules:: UndocumentedWarn ) ,
1026
+ ( Flake8Logging , "001" ) => ( RuleGroup :: Stable , rules:: flake8_logging:: rules:: DirectLoggerInstantiation ) ,
1027
+ ( Flake8Logging , "002" ) => ( RuleGroup :: Stable , rules:: flake8_logging:: rules:: InvalidGetLoggerArgument ) ,
1028
+ ( Flake8Logging , "007" ) => ( RuleGroup :: Stable , rules:: flake8_logging:: rules:: ExceptionWithoutExcInfo ) ,
1029
+ ( Flake8Logging , "009" ) => ( RuleGroup :: Stable , rules:: flake8_logging:: rules:: UndocumentedWarn ) ,
1031
1030
1032
1031
_ => return None ,
1033
1032
} )
0 commit comments