Skip to content

Prioritize redefined-while-unused over unused-import - #11173

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/F
Apr 27, 2024
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/F

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Apr 27, 2024 •

Copy link
Copy Markdown
Member

Summary

This PR adds an override to the fixer to ensure that we apply any redefined-while-unused fixes prior to unused-import.

Closes #10905.

@charliermarsh charliermarsh added bug An issue describing something that isn't working, or a PR that fixes a bug fixes Related to suggested fixes for violations labels Apr 27, 2024
@charliermarsh
charliermarsh marked this pull request as ready for review April 27, 2024 12:58
@github-actions

Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue describing something that isn't working, or a PR that fixes a bug fixes Related to suggested fixes for violations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

F401 + F811 - auto-fix removes both top the level import and any inside-function import

2 participants