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

Update RUF001-003 to check in f-strings #7294

Closed
Tracked by #7299
dhruvmanila opened this issue Sep 12, 2023 · 0 comments · Fixed by #7477
Closed
Tracked by #7299

Update RUF001-003 to check in f-strings #7294

dhruvmanila opened this issue Sep 12, 2023 · 0 comments · Fixed by #7477
Assignees
Labels
python312 Related to Python 3.12 rule Implementing or modifying a lint rule

Comments

@dhruvmanila
Copy link
Member

RUF001, RUF002, and RUF003 checks for ambiguous unicode character in strings, comments and docstrings respectively.

The rule needs to be updated to check for the same inside a f-string. Here, we only need to check within a FStringMiddle token which contains the non-expression part of a f-string.

@dhruvmanila dhruvmanila added rule Implementing or modifying a lint rule python312 Related to Python 3.12 labels Sep 12, 2023
@dhruvmanila dhruvmanila self-assigned this Sep 17, 2023
@dhruvmanila dhruvmanila linked a pull request Sep 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python312 Related to Python 3.12 rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant