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

Instead of NamedTuple, consider using the @dataclass decorator from dataclasses instead for simplicity, efficiency and consistency.

Any

Yes

no-static-if-condition

Your if condition appears to evaluate to a static value (e.g. or True, and False). Please double check this logic and if it is actually temporary debug code.

Any

No

sorted-attributes

It appears you are using the @sorted-attributes directive and the class variables are unsorted. See the lint autofix suggestion.

Any

Yes

use-callable-ellipsis

Any

Yes

use-rattle-ignore-comment

noqa is deprecated. Use rattle: ignore[rule-name] instead.

Any

No

use-types-from-typing

< 3.10

Yes