You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ruff check sample.py --select RUF
sample.py:22:5: RUF001 [*] String contains ambiguous unicode character `ノ` (did you mean `/`?)
Found 1 error.
[*] 1 potentially fixable with the --fix option.
Issue
The above python code contains all HIRAGANA and KATAKANA LETTERS, but Ruff only identifies ノ (Katakana Letter No) as an ambiguous unicode character.
Ruff's code for detecting ambiguous Unicode characters was ported from VSCode's code, but this code was modified in 2021. In March 2023, VSCode fixed the code. Therefore, I suggest that Ruff should update its code for detecting ambiguous Unicode characters.
Settings
no pyproject.toml
Version
$ ruff --version
ruff 0.0.264
The text was updated successfully, but these errors were encountered:
Python code
sample.py
Command
Issue
The above python code contains all HIRAGANA and KATAKANA LETTERS, but Ruff only identifies ノ (Katakana Letter No) as an ambiguous unicode character.
Ruff's code for detecting ambiguous Unicode characters was ported from VSCode's code, but this code was modified in 2021. In March 2023, VSCode fixed the code. Therefore, I suggest that Ruff should update its code for detecting ambiguous Unicode characters.
Settings
no pyproject.toml
Version
The text was updated successfully, but these errors were encountered: