abstract-and-final-method |
misc |
|
abstract-method-in-final-class |
misc |
reportGeneralTypeIssues |
call-abstract-method |
|
reportAbstractUsage |
call-non-callable |
operator
misc |
reportCallIssue
reportOptionalCall |
call-non-callable (abstract class instantiation only) |
abstract |
reportAbstractUsage |
conflicting-declarations |
no-redef |
reportRedeclaration |
conflicting-metaclass |
metaclass |
reportGeneralTypeIssues |
cyclic-class-definition |
misc |
reportGeneralTypeIssues |
cyclic-type-alias-definition |
misc |
reportGeneralTypeIssues |
dataclass-field-order |
misc |
reportGeneralTypeIssues |
deprecated |
deprecated |
reportDeprecated |
disjoint-cast |
|
reportInvalidCast (basedpyright only) |
division-by-zero |
|
|
duplicate-base |
misc |
reportGeneralTypeIssues |
duplicate-kw-only |
misc |
reportGeneralTypeIssues |
dynamic-function-decorator-return |
untyped-decorator |
reportUntypedFunctionDecorator (Unknown returns only) |
empty-body |
empty-body |
reportReturnType (... bodies are exempt) |
final-on-non-method |
misc |
reportGeneralTypeIssues |
final-without-value |
misc |
reportGeneralTypeIssues |
inconsistent-mro |
misc |
reportGeneralTypeIssues |
index-out-of-bounds |
misc |
reportGeneralTypeIssues |
invalid-argument-type |
arg-type
index
type-var
typeddict-item |
reportArgumentType
reportAssignmentType |
invalid-assignment |
assignment
list-item
dict-item |
reportAssignmentType |
invalid-assignment (incompatible method replacements only) |
method-assign (rejects all method assignments) |
reportAttributeAccessIssue (incompatible replacements only) |
invalid-assignment (TypedDict item values) |
typeddict-item |
reportGeneralTypeIssues |
invalid-assignment (read-only TypedDict keys) |
typeddict-readonly-mutated |
reportTypedDictNotRequiredAccess (read-only mutations only) |
invalid-attribute-access |
misc |
reportAttributeAccessIssue |
invalid-attribute-override |
misc |
reportIncompatibleVariableOverride (class/instance variables only) |
invalid-await |
misc |
reportGeneralTypeIssues |
invalid-base |
valid-type
misc |
reportGeneralTypeIssues |
invalid-context-manager |
misc
attr-defined
union-attr |
reportGeneralTypeIssues
reportOptionalContextManager |
invalid-dataclass |
misc |
reportGeneralTypeIssues (when slots=True conflicts with __slots__ only) |
invalid-exception-caught |
misc |
reportGeneralTypeIssues |
invalid-explicit-override |
misc |
reportGeneralTypeIssues |
invalid-frozen-dataclass-subclass |
misc |
reportGeneralTypeIssues |
invalid-generic-class (type-variable variance in methods) |
misc |
reportGeneralTypeIssues |
invalid-init-type-variable |
|
reportInvalidTypeVarUse |
invalid-key |
typeddict-item
typeddict-unknown-key |
reportGeneralTypeIssues
reportAssignmentType
reportCallIssue |
invalid-key (non-literal string TypedDict keys only) |
literal-required |
|
invalid-legacy-type-variable |
misc
valid-type |
reportGeneralTypeIssues
reportInvalidTypeForm |
invalid-match-pattern (class-pattern positional argument count only) |
misc |
reportGeneralTypeIssues |
invalid-metaclass |
metaclass |
|
invalid-method-override |
override |
reportIncompatibleMethodOverride |
invalid-module-getattr-call |
|
|
invalid-named-tuple (field names starting with an underscore only) |
misc |
reportGeneralTypeIssues |
invalid-newtype |
valid-newtype
misc |
reportGeneralTypeIssues
reportArgumentType |
invalid-overload |
no-overload-impl
misc |
reportNoOverloadImplementation
reportInconsistentOverload |
invalid-parameter-default |
assignment |
reportArgumentType |
invalid-protocol |
misc |
reportGeneralTypeIssues |
invalid-raise |
misc |
reportGeneralTypeIssues |
invalid-return-type |
return
return-value |
reportReturnType |
invalid-type-arguments |
misc
type-var |
reportInvalidTypeArguments |
invalid-type-form |
valid-type |
reportInvalidTypeForm
reportGeneralTypeIssues |
invalid-type-guard-definition |
narrowed-type-not-subtype
valid-type |
reportGeneralTypeIssues |
invalid-type-variable-bound |
valid-type
misc |
reportGeneralTypeIssues |
invalid-type-variable-constraints |
valid-type
misc |
reportGeneralTypeIssues |
invalid-type-variable-default |
misc |
reportGeneralTypeIssues |
invalid-typed-dict-field |
misc |
reportIncompatibleVariableOverride |
invalid-typed-dict-header (custom metaclasses only) |
call-arg |
reportGeneralTypeIssues |
invalid-typed-dict-statement (methods in a TypedDict body only) |
misc |
reportGeneralTypeIssues |
invalid-yield |
misc |
reportReturnType |
isinstance-against-protocol |
misc |
reportArgumentType
reportGeneralTypeIssues |
isinstance-against-typed-dict |
misc |
reportArgumentType
reportGeneralTypeIssues |
mismatched-type-name |
name-match
misc |
reportGeneralTypeIssues |
missing-argument |
call-arg |
reportCallIssue |
missing-override-decorator |
explicit-override |
reportImplicitOverride |
missing-type-argument |
type-arg |
reportMissingTypeArgument |
missing-typed-dict-key |
typeddict-item |
reportAssignmentType |
no-matching-overload |
call-overload |
reportCallIssue |
not-iterable |
misc
attr-defined
union-attr |
reportGeneralTypeIssues
reportOptionalIterable |
not-subscriptable |
index |
reportIndexIssue
reportOptionalSubscript |
override-of-final-method |
misc |
reportIncompatibleMethodOverride |
override-of-final-variable |
misc |
reportGeneralTypeIssues |
parameter-already-assigned |
misc
call-arg |
reportCallIssue |
positional-only-parameter-as-kwarg |
call-arg |
reportCallIssue |
possibly-missing-attribute |
|
|
possibly-unresolved-reference |
possibly-undefined |
reportPossiblyUnboundVariable |
redundant-cast |
redundant-cast |
reportUnnecessaryCast |
redundant-condition (guaranteed truthiness only) |
truthy-bool |
|
redundant-condition (function objects only) |
truthy-function |
reportUnnecessaryComparison |
redundant-condition (some boolean tests of None-returning calls only) |
func-returns-value |
|
redundant-condition, redundant-condition-strict |
redundant-expr (unlike mypy, ty checks and/or only in boolean conditions such as if tests, not when computing values) |
|
redundant-condition, redundant-condition-strict |
comparison-overlap (in boolean conditions such as if tests; other cases are not yet implemented) |
reportUnnecessaryComparison
reportUnnecessaryContains (both in boolean conditions such as if tests) |
redundant-condition, redundant-condition-strict |
unreachable (in boolean conditions such as if tests that lead to unreachable code; other cases are not yet implemented) |
reportUnreachable (in boolean conditions such as if tests that lead to unreachable code only) |
redundant-condition-strict |
|
reportUnnecessaryIsInstance (in boolean conditions such as if tests) |
subclass-of-final-class |
misc |
reportGeneralTypeIssues |
too-many-positional-arguments |
call-arg |
reportCallIssue |
truthiness-test-of-callable |
truthy-function |
reportUnnecessaryComparison |
truthiness-test-of-iterable |
truthy-iterable
truthy-bool |
|
truthiness-test-of-none-union |
|
|
type-assertion-failure |
assert-type |
reportAssertTypeFailure |
unbound-type-variable |
valid-type |
reportGeneralTypeIssues |
undefined-reveal |
unimported-reveal |
|
unknown-argument |
call-arg |
reportCallIssue |
unresolved-attribute |
attr-defined
union-attr |
reportAttributeAccessIssue
reportFunctionMemberAccess
reportOptionalMemberAccess |
unresolved-import |
import-not-found |
reportMissingImports |
unresolved-attribute, unresolved-import (stub names not re-exported) |
attr-defined |
reportAttributeAccessIssue |
unresolved-reference, Ruff F823 |
name-defined
used-before-def |
reportUndefinedVariable
reportUnboundVariable |
unsound-assignment (variables only) |
|
|
unsound-return-statement |
no-any-return |
|
unsound-yield |
|
|
unsupported-operator |
operator |
reportOperatorIssue
reportOptionalOperand |
unused-awaitable (native coroutines only) |
unused-coroutine
unused-awaitable |
reportUnusedCoroutine
reportUnusedCallResult (discarded native coroutine calls only) |
unused-ignore-comment |
unused-ignore |
reportUnnecessaryTypeIgnoreComment |
unused-type-ignore-comment |
unused-ignore |
reportUnnecessaryTypeIgnoreComment |
blanket-ignore-comment, Ruff PGH003 |
ignore-without-code |
reportIgnoreCommentWithoutRule (basedpyright only) |
| No direct equivalent planned for passing abstract classes where concrete classes are required |
type-abstract |
|
None yet for calling abstract methods through super() |
safe-super |
reportAbstractUsage |
Ruff F631 |
|
reportAssertAlwaysTrue |
Ruff B006 Ruff B008 (partial coverage; immutable annotations and calls are excluded) |
|
reportCallInDefaultInitializer |
| None yet (tracked in Ruff #10137) |
|
reportConstantRedefinition |
Ruff F811 Ruff I001 (partial coverage; separate import blocks may be missed) |
|
reportDuplicateImport |
Ruff ISC001 Ruff ISC002 |
|
reportImplicitStringConcatenation |
| None yet (tracked in #3647) |
|
reportImportCycles |
| None yet for mutable attribute types (tracked in #2158) |
mutable-override |
reportIncompatibleVariableOverride |
| None yet |
|
reportIncompleteStub |
| None yet (tracked in #3651) |
|
reportInconsistentConstructor |
Ruff W605 |
|
reportInvalidStringEscapeSequence |
Ruff PYI010 Ruff PYI017 Ruff PYI048 Ruff PYI052 |
|
reportInvalidStubStatement |
| None yet for other cases (tracked in #1017, #3636, #3637) |
type-var |
reportInvalidTypeVarUse |
| None yet (tracked in #1060) |
exhaustive-match |
reportMatchNotExhaustive |
| None yet (tracked in #1577) |
|
reportMissingModuleSource |
| None yet (tracked in #3652) |
|
reportMissingSuperCall |
| None yet (tracked in #3638) |
import-untyped |
reportMissingTypeStubs |
| None yet (tracked in #103) |
overload-cannot-match
overload-overlap |
reportOverlappingOverload |
| None yet for non-re-exported names in runtime files (tracked in #200) |
attr-defined (extended by --no-implicit-reexport) |
reportPrivateImportUsage
reportPrivateLocalImportUsage (basedpyright only) |
Ruff SLF001 Ruff PLC2701 (partial coverage; PLC2701 requires preview) |
|
reportPrivateUsage |
| None yet (tracked in #3633) |
|
reportPropertyTypeMismatch |
Ruff N804 Ruff N805 |
|
reportSelfClsParameterName |
Ruff PYI033 (.py files require preview) |
|
reportTypeCommentUsage |
| None yet for accessing non-required keys (tracked in #2810) |
|
reportTypedDictNotRequiredAccess |
| None yet (tracked in #3781) |
|
reportUnhashable |
| None yet (tracked in #2954) |
|
reportUninitializedInstanceVariable |
| None yet |
|
reportUnknownArgumentType
reportUnknownLambdaType
reportUnknownMemberType |
| None yet |
var-annotated |
|
| None yet |
|
reportUnknownVariableType |
Ruff F822 Ruff PLE0604 Ruff PLE0605 Ruff PYI056 |
|
reportUnsupportedDunderAll |
| None yet |
|
reportUntypedBaseClass
reportUntypedClassDecorator |
Ruff PYI024 |
|
reportUntypedNamedTuple |
| None yet |
|
reportUnusedClass
reportUnusedFunction |
| None yet for other discarded call results |
|
reportUnusedCallResult |
Ruff ARG rules |
|
reportUnusedParameter (basedpyright only) |
Ruff B025 (duplicate exception handlers only; other cases tracked in #3701) |
|
reportUnusedExcept |
Ruff B015 Ruff B018 |
|
reportUnusedExpression |
Ruff F401 |
|
reportUnusedImport |
Ruff F841 (function-local variables only) |
|
reportUnusedVariable |
Ruff F403 |
|
reportWildcardImportFromLibrary |
Ruff ANN401 (function annotations only) |
explicit-any |
reportExplicitAny (basedpyright only) |
None yet for other uses of None-returning calls |
func-returns-value |
|
| None yet |
no-any-unimported |
|
| None yet (tracked in #4381) |
no-untyped-call |
|
Ruff F505 Ruff F507 (missing names or wrong argument counts only) |
str-format (partial coverage) |
|
Ruff F522 Ruff F523 Ruff F524 (missing or extra arguments only) |
str-format (partial coverage) |
|
Ruff ANN rules |
no-untyped-def |
reportMissingParameterType
reportUnknownParameterType |