[ruff] Fix ambiguous characters found in string and comment
This commit is contained in:
parent
514376fe29
commit
180a16a344
|
@ -158,8 +158,6 @@ ignore = [
|
|||
"D404", # First word of the docstring should not be "This"
|
||||
"D415", # First line should end with a period, question mark, or exclamation point
|
||||
# ruff ignore
|
||||
"RUF001", # String contains ambiguous character
|
||||
"RUF003", # Comment contains ambiguous character
|
||||
"RUF005", # Consider `(x, *y)` instead of concatenation
|
||||
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
||||
"RUF015", # Prefer `next(iter(x))` over single element slice
|
||||
|
|
|
@ -15,7 +15,7 @@ import pytest
|
|||
("\u1ABE", 0),
|
||||
("\u0591", 0),
|
||||
("🉐", 2),
|
||||
("$", 2),
|
||||
("$", 2), # noqa: RUF001
|
||||
],
|
||||
)
|
||||
def test_wcwidth(c: str, expected: int) -> None:
|
||||
|
|
|
@ -1149,7 +1149,7 @@ class TestAssert_reprcompare_attrsclass:
|
|||
def test_attrs_with_auto_detect_and_custom_eq(self) -> None:
|
||||
@attr.s(
|
||||
auto_detect=True
|
||||
) # attr.s doesn’t ignore a custom eq if auto_detect=True
|
||||
) # attr.s doesn't ignore a custom eq if auto_detect=True
|
||||
class SimpleDataObject:
|
||||
field_a = attr.ib()
|
||||
|
||||
|
|
|
@ -729,7 +729,7 @@ class TestDoctests:
|
|||
>>> name = 'с' # not letter 'c' but instead Cyrillic 's'.
|
||||
'anything'
|
||||
"""
|
||||
'''
|
||||
''' # noqa: RUF001
|
||||
)
|
||||
result = pytester.runpytest("--doctest-modules")
|
||||
result.stdout.fnmatch_lines(["Got nothing", "* 1 failed in*"])
|
||||
|
|
Loading…
Reference in New Issue