Skip to content

Commit 21e7d37

Browse files
committed
run format with ruff
1 parent f057af2 commit 21e7d37

116 files changed

Lines changed: 3060 additions & 2576 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/gcp-sphinx-docfx-yaml/docfx_yaml/directives.py

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,33 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# coding: utf-8
16-
17-
"""
18-
This module is used to add extra supported directives to sphinx.
19-
"""
20-
21-
from docutils.parsers.rst.directives.admonitions import BaseAdmonition
22-
from docutils.parsers.rst import Directive
23-
from docutils import nodes
24-
25-
from .nodes import remarks
26-
27-
28-
class RemarksDirective(BaseAdmonition):
15+
# coding: utf-8
16+
17+
"""
18+
This module is used to add extra supported directives to sphinx.
19+
"""
20+
21+
from docutils import nodes
22+
from docutils.parsers.rst import Directive
23+
from docutils.parsers.rst.directives.admonitions import BaseAdmonition
24+
25+
from .nodes import remarks
26+
27+
28+
class RemarksDirective(BaseAdmonition):
2929
"""A directive to handle 'remarks' blocks."""
30-
node_class = remarks
31-
32-
class TodoDirective(Directive):
30+
31+
node_class = remarks
32+
33+
34+
class TodoDirective(Directive):
3335
"""A directive to ignore 'todo' blocks."""
34-
35-
# Enable content in the directive
36-
has_content = True
37-
36+
37+
# Enable content in the directive
38+
has_content = True
39+
3840
def run(self) -> list[nodes.Node]:
3941
"""This directive is ignored, so return empty list."""
40-
return_nodes = []
41-
42-
return return_nodes
42+
return_nodes = []
43+
44+
return return_nodes

0 commit comments

Comments
 (0)