mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-02 09:00:00 -06:00
Enable the entire D category in Ruff
This commit is contained in:
1 parent
dbf62cd503
commit
c4daa95c09
96 files changed
+310
-706
No files matched your search
@@ -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):
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user