Fixit

Core lint rules inherited from Fixit.

Enable with:

enable = ["fixit"]

Rule

Message

Python

Autofix

explicit-frozen-dataclass

Dataclass mutability must be explicit. Add frozen=True for immutable value objects or frozen=False when instances are intentionally mutable.

Any

No

no-named-tuple

NamedTuple can often be replaced with @dataclass, but dataclasses are not tuple-compatible; check callers before converting.

Any

No

no-static-if-condition

This if condition appears constant; verify the logic and remove any temporary debug clause.

Any

No

sorted-attributes

Class assignments under @sorted-attributes are not sorted; sorting them can change right-hand-side side-effect order.

Any

Yes

use-callable-ellipsis

Use Callable[…, T] instead of Callable[[…], T].

Any

Yes

use-rattle-ignore-comment

Use rattle: ignore[rule-name]; Rattle does not support noqa.

Any

No

use-types-from-typing

Python 3.8 does not support {builtin_type}[...] annotations; use typing.{correct_type} instead.

< 3.9

Yes