Skip to content

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

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

Prioritize redefined-while-unused over unused-import#11173
charliermarsh merged 1 commit intomainfrom
charlie/F

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh commented Apr 27, 2024

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 Something isn't working 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.

Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood left a comment

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 Something isn't working 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