diff --git a/pyproject.toml b/pyproject.toml index 2021df4cf..d02beb0bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/testing/io/test_wcwidth.py b/testing/io/test_wcwidth.py index 9ed2a6d3c..0989af00d 100644 --- a/testing/io/test_wcwidth.py +++ b/testing/io/test_wcwidth.py @@ -15,7 +15,7 @@ import pytest ("\u1ABE", 0), ("\u0591", 0), ("🉐", 2), - ("$", 2), + ("$", 2), # noqa: RUF001 ], ) def test_wcwidth(c: str, expected: int) -> None: diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 167541e1e..2fa6fbe37 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -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() diff --git a/testing/test_doctest.py b/testing/test_doctest.py index a7a0077ae..372528490 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -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*"])