File tree Expand file tree Collapse file tree 4 files changed +317
-232
lines changed
Expand file tree Collapse file tree 4 files changed +317
-232
lines changed Original file line number Diff line number Diff line change 1919}
2020MAX_DOCSTRING_LENGTH : int = 300
2121AWS_LINK_RE = re .compile (r"`([^`]+\S)\s*<https://(\S+)>`\_*" )
22- REPLACE_DOCSTRING_CHARS = {"’" : "'" , "–" : "-" } # noqa
22+ REPLACE_DOCSTRING_CHARS = {"’" : "'" , "–" : "-" } # noqa: RUF001
2323
2424
2525def get_class_prefix (func_name : str ) -> str :
Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ fixable = ["ALL"]
201201unfixable = [" B" ]
202202dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
203203exclude = [" *.pyi" , " examples/*" , " aio_examples/*" ]
204+ allowed-confusables = [" ’" ]
204205
205206[tool .ruff .lint .per-file-ignores ]
206207"test_*.py" = [
Original file line number Diff line number Diff 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**::\n test" )
3939 == "[asd](https://link)."
You can’t perform that action at this time.
0 commit comments