Enable the entire D category in Ruff

This commit is contained in:
Adam Turner
2025-01-14 15:55:02 +00:00
parent dbf62cd503
commit c4daa95c09
96 changed files with 310 additions and 706 deletions

View File

@@ -943,9 +943,8 @@ def test_getdoc_inherited_classmethod():
class Foo:
@classmethod
def meth(cls):
"""
Docstring
indented text
"""Docstring
indented text
"""
class Bar(Foo):
@@ -961,9 +960,8 @@ def test_getdoc_inherited_classmethod():
def test_getdoc_inherited_decorated_method():
class Foo:
def meth(self):
"""
Docstring
indented text
"""Docstring
indented text
"""
class Bar(Foo):

View File

@@ -161,8 +161,7 @@ def test_extract_messages(rst, node_cls, count):
def test_extract_messages_without_rawsource():
"""
Check node.rawsource is fall-backed by using node.astext() value.
"""Check node.rawsource is fall-backed by using node.astext() value.
`extract_message` which is used from Sphinx i18n feature drop ``not node.rawsource``
nodes. So, all nodes which want to translate must have ``rawsource`` value.