Skip to content

Commit c260871

Browse files
committed
Add allowed confusables
1 parent d999ccc commit c260871

File tree

4 files changed

+317
-232
lines changed

4 files changed

+317
-232
lines changed

mypy_boto3_builder/utils/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
MAX_DOCSTRING_LENGTH: int = 300
2121
AWS_LINK_RE = re.compile(r"`([^`]+\S)\s*<https://(\S+)>`\_*")
22-
REPLACE_DOCSTRING_CHARS = {"’": "'", "–": "-"} # noqa
22+
REPLACE_DOCSTRING_CHARS = {"’": "'", "–": "-"} # noqa: RUF001
2323

2424

2525
def get_class_prefix(func_name: str) -> str:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ fixable = ["ALL"]
201201
unfixable = ["B"]
202202
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
203203
exclude = ["*.pyi", "examples/*", "aio_examples/*"]
204+
allowed-confusables = [""]
204205

205206
[tool.ruff.lint.per-file-ignores]
206207
"test_*.py" = [

tests/utils/test_strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_get_short_docstring(self) -> None:
3333
assert get_short_docstring("") == ""
3434
assert get_short_docstring("\n") == ""
3535
assert get_short_docstring("`asd\n:type") == "`asd`."
36-
assert get_short_docstring("`as’d\n:type") == "`as'd`." # noqa: RUF001
36+
assert get_short_docstring("`as’d\n:type") == "`as'd`."
3737
assert (
3838
get_short_docstring("`asd <https://link>`\n **Request syntax**::\ntest")
3939
== "[asd](https://link)."

0 commit comments

Comments
 (0)