Skip to content

Simplify logic for RUF027 #12907

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

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Simplify logic for RUF027 #12907

merged 1 commit into from
Aug 16, 2024

Conversation

AlexWaygood
Copy link
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
Copy link
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
20 checks passed
@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