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

Avoid E203 for f-string debug expression #12024

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

dhruvmanila
Copy link
Member

Summary

This PR fixes a bug where Ruff would raise E203 for f-string debug expression. This isn't valid because whitespaces are important for debug expressions.

fixes: #12023

Test Plan

Add test case and make sure there are no snapshot changes.

@dhruvmanila dhruvmanila added the bug Something isn't working label Jun 25, 2024
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dhruvmanila dhruvmanila merged commit 2853751 into main Jun 25, 2024
20 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/debug-expression branch June 25, 2024 09:30
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.

E203: false positive in f-string using formatting
2 participants