Skip to content

Simplify logic for RUF027#12907

Merged
AlexWaygood merged 1 commit intomainfrom
alex/ruf027-2
Aug 16, 2024
Merged

Simplify logic for RUF027#12907
AlexWaygood merged 1 commit intomainfrom
alex/ruf027-2

Conversation

@AlexWaygood
Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood commented Aug 15, 2024

Summary

This PR is a pure refactor to simplify some of the logic for RUF027. This will make it easier to file some followup PRs to help reduce the false positives from this rule. I'm separating the refactor out into a separate PR so it's easier to review, and so I can double-check from the ecosystem report that this doesn't have any user-facing impact.

Test Plan

cargo test -p ruff_linter --lib

@AlexWaygood AlexWaygood added the internal An internal refactor or improvement label Aug 15, 2024
@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 marked this pull request as ready for review August 15, 2024 17:45
@AlexWaygood AlexWaygood merged commit d8debb7 into main Aug 16, 2024
@AlexWaygood AlexWaygood deleted the alex/ruf027-2 branch August 16, 2024 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants