Skip to content

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

@dhruvmanila

Description

@dhruvmanila

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.

Metadata

Metadata

Assignees

Labels

python312Related to Python 3.12ruleImplementing or modifying a lint rule

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions