Skip to content

RUF025 duplicates unimplemented rule C420 #12110

@tjkuson

Description

@tjkuson

unnecessary-dict-comprehension-for-iterable (RUF025) now exists as a flake8-comprehensions rule (adamchainz/flake8-comprehensions#553).

Although C420 has not been implemented yet, it would make sense (and seems to match what has been done before) to merge the rules in favour of the flake8 plugin. Although the rule request was made to Ruff first (#9592, adamchainz/flake8-comprehensions#552), my understanding is that Ruff favours strong coupling to flake8.

search terms: RUF025, flake8-comprehensions, duplicate, duplication

Related to #2714

Metadata

Metadata

Assignees

Labels

ruleImplementing or modifying a lint rule

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions