Skip to content

[FEATURE] Support attrs in RUF008 and RUF009 #9757

@alanhdu

Description

@alanhdu

These rules guard against using mutable default values in dataclasses. It would be nice if these rules also supported attrs, which is the (more feature-rich) predecessor which is also pretty widely used.

If this is something that you'd be open for, I think I can get some time to potentially contribute a patch myself.

Metadata

Metadata

Assignees

Labels

ruleImplementing or modifying a lint rule

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions