Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUF025 duplicates unimplemented rule C420 #12110

Closed
tjkuson opened this issue Jun 30, 2024 · 1 comment · Fixed by #12533
Closed

RUF025 duplicates unimplemented rule C420 #12110

tjkuson opened this issue Jun 30, 2024 · 1 comment · Fixed by #12533
Assignees
Labels
rule Implementing or modifying a lint rule
Milestone

Comments

@tjkuson
Copy link
Contributor

tjkuson commented Jun 30, 2024

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

@charliermarsh
Copy link
Member

Cool, makes sense to me to redirect it to C420! Thanks for doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants