Skip to content

Commit 180a16a

Browse files
[ruff] Fix ambiguous characters found in string and comment
1 parent 514376f commit 180a16a

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ ignore = [
158158
"D404", # First word of the docstring should not be "This"
159159
"D415", # First line should end with a period, question mark, or exclamation point
160160
# ruff ignore
161-
"RUF001", # String contains ambiguous character
162-
"RUF003", # Comment contains ambiguous character
163161
"RUF005", # Consider `(x, *y)` instead of concatenation
164162
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
165163
"RUF015", # Prefer `next(iter(x))` over single element slice

testing/io/test_wcwidth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
("\u1ABE", 0),
1616
("\u0591", 0),
1717
("🉐", 2),
18-
("$", 2),
18+
("$", 2), # noqa: RUF001
1919
],
2020
)
2121
def test_wcwidth(c: str, expected: int) -> None:

testing/test_assertion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ class SimpleDataObjectTwo:
11491149
def test_attrs_with_auto_detect_and_custom_eq(self) -> None:
11501150
@attr.s(
11511151
auto_detect=True
1152-
) # attr.s doesnt ignore a custom eq if auto_detect=True
1152+
) # attr.s doesn't ignore a custom eq if auto_detect=True
11531153
class SimpleDataObject:
11541154
field_a = attr.ib()
11551155

testing/test_doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def foo():
729729
>>> name = 'с' # not letter 'c' but instead Cyrillic 's'.
730730
'anything'
731731
"""
732-
'''
732+
''' # noqa: RUF001
733733
)
734734
result = pytester.runpytest("--doctest-modules")
735735
result.stdout.fnmatch_lines(["Got nothing", "* 1 failed in*"])

0 commit comments

Comments
 (0)