ci: Enable ruff ambiguous-unicode-character checks
What changed, and why it matters
This commit only turns on three new lint checks in the project's Python code style tool (ruff). These checks warn when text contains Unicode characters that look like ordinary ASCII letters but are actually different characters, which can be confusing or misleading. There is no code behavior change, no bug fix, and no security patch.
No action needed. This is a routine code-quality/CI configuration change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds RUF001, RUF002, and RUF003 to ruff.toml’s select list. These rules flag ambiguous Unicode characters in Python string literals, docstrings, and comments. It is a static-analysis configuration change; no runtime code is modified.
Changed components
ruff.tomlInspect captured patch +3 / −0
diff --git a/ruff.toml b/ruff.toml
index 10df372c..1c1867e3 100644
--- a/ruff.toml
+++ b/ruff.toml
@@ -34,6 +34,9 @@ select = [
"F823", # local variable name referenced before assignment
"F841", # local variable 'foo' is assigned to but never used
"PLE", # Pylint errors
+ "RUF001", # ambiguous-unicode-character-string
+ "RUF002", # ambiguous-unicode-character-docstring
+ "RUF003", # ambiguous-unicode-character-comment
"W191", # indentation contains tabs
"W291", # trailing whitespace
"W292", # no newline at end of file
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.