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

[ruff] Skip RUF001 diagnostics when visiting string type definitions #16122

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

AlexWaygood
Copy link
Member

Summary

There's no need to check this rule again when we're visiting a parsed string type definition; all errors will have been caught in the first traversal of the tree. Fixes #16117

Test Plan

Added a fixture that reproduces the error on main.

@AlexWaygood AlexWaygood added bug Something isn't working rule Implementing or modifying a lint rule labels Feb 12, 2025
@AlexWaygood AlexWaygood merged commit c31352f into main Feb 12, 2025
21 checks passed
@AlexWaygood AlexWaygood deleted the alex/ruf1 branch February 12, 2025 16:27
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila removed the rule Implementing or modifying a lint rule label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RUF001 reports multiple violations for the same character in a nested typing string
3 participants