Collapse single line docstrings

This commit is contained in:
Adam Turner
2022-02-20 03:05:56 +00:00
parent 6bb7b891a1
commit 5775912455
231 changed files with 231 additions and 462 deletions

View File

@@ -1,5 +1,4 @@
"""Test module for napoleon PEP 526 compatibility with google style
"""
"""Test module for napoleon PEP 526 compatibility with google style"""
module_level_var: int = 99
"""This is an example module level variable"""

View File

@@ -1,5 +1,4 @@
"""Test module for napoleon PEP 526 compatibility with numpy style
"""
"""Test module for napoleon PEP 526 compatibility with numpy style"""
module_level_var: int = 99
"""This is an example module level variable"""

View File

@@ -1,5 +1,4 @@
"""Test the Sphinx API for translator.
"""
"""Test the Sphinx API for translator."""
import sys

View File

@@ -1,5 +1,4 @@
"""Test the Sphinx class.
"""
"""Test the Sphinx class."""
from unittest.mock import Mock

View File

@@ -1,5 +1,4 @@
"""Test all builders.
"""
"""Test all builders."""
import sys
from textwrap import dedent

View File

@@ -1,5 +1,4 @@
"""Test the ChangesBuilder class.
"""
"""Test the ChangesBuilder class."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test dirhtml builder.
"""
"""Test dirhtml builder."""
import posixpath

View File

@@ -1,5 +1,4 @@
"""Test the HTML builder and check output against XPath.
"""
"""Test the HTML builder and check output against XPath."""
import os
import subprocess

View File

@@ -1,5 +1,4 @@
"""Test the build process with gettext builder with the test root.
"""
"""Test the build process with gettext builder with the test root."""
import gettext
import os

View File

@@ -1,5 +1,4 @@
"""Test the HTML builder and check output against XPath.
"""
"""Test the HTML builder and check output against XPath."""
import os
import re

View File

@@ -1,5 +1,4 @@
"""Test the build process with LaTeX builder with the test root.
"""
"""Test the build process with LaTeX builder with the test root."""
import os
import re

View File

@@ -1,5 +1,4 @@
"""Test the build process with manpage builder with the test root.
"""
"""Test the build process with manpage builder with the test root."""
import http.server
import json

View File

@@ -1,5 +1,4 @@
"""Test the build process with manpage builder with the test root.
"""
"""Test the build process with manpage builder with the test root."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the build process with Texinfo builder with the test root.
"""
"""Test the build process with Texinfo builder with the test root."""
import os
import re

View File

@@ -1,5 +1,4 @@
"""Test the build process with Text builder with the test root.
"""
"""Test the build process with Text builder with the test root."""
import pytest
from docutils.utils import column_width

View File

@@ -1,5 +1,4 @@
"""Test the Builder class.
"""
"""Test the Builder class."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the base build process.
"""
"""Test the base build process."""
import shutil
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the sphinx.config.Config class.
"""
"""Test the sphinx.config.Config class."""
from unittest import mock

View File

@@ -1,5 +1,4 @@
"""Test copyright year adjustment
"""
"""Test copyright year adjustment"""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the code-block directive.
"""
"""Test the code-block directive."""
import os

View File

@@ -1,5 +1,4 @@
"""Test the only directive with the test root.
"""
"""Test the only directive with the test root."""
import re

View File

@@ -1,5 +1,4 @@
"""Test the other directives.
"""
"""Test the other directives."""
import pytest
from docutils import nodes

View File

@@ -1,5 +1,4 @@
"""Test the patched directives.
"""
"""Test the patched directives."""
import pytest
from docutils import nodes

View File

@@ -1,5 +1,4 @@
"""Test docutils.conf support for several writers.
"""
"""Test docutils.conf support for several writers."""
import pytest
from docutils import nodes

View File

@@ -1,5 +1,4 @@
"""Tests the C Domain
"""
"""Tests the C Domain"""
import itertools
import zlib

View File

@@ -1,5 +1,4 @@
"""Tests the C++ Domain
"""
"""Tests the C++ Domain"""
import itertools
import re

View File

@@ -1,5 +1,4 @@
"""Tests the JavaScript Domain
"""
"""Tests the JavaScript Domain"""
from unittest.mock import Mock

View File

@@ -1,5 +1,4 @@
"""Tests the Python Domain
"""
"""Tests the Python Domain"""
import re
import sys

View File

@@ -1,5 +1,4 @@
"""Tests the reStructuredText domain.
"""
"""Tests the reStructuredText domain."""
from sphinx import addnodes
from sphinx.addnodes import (desc, desc_addname, desc_annotation, desc_content, desc_name,

View File

@@ -1,5 +1,4 @@
"""Tests the std domain
"""
"""Tests the std domain"""
from unittest import mock

View File

@@ -1,5 +1,4 @@
"""Test the BuildEnvironment class.
"""
"""Test the BuildEnvironment class."""
import os
import shutil

View File

@@ -1,5 +1,4 @@
"""Test the sphinx.environment.managers.indexentries.
"""
"""Test the sphinx.environment.managers.indexentries."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the sphinx.environment.managers.toctree.
"""
"""Test the sphinx.environment.managers.toctree."""
import pytest
from docutils import nodes

View File

@@ -1,5 +1,4 @@
"""Test the EventManager class.
"""
"""Test the EventManager class."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the sphinx.apidoc module.
"""
"""Test the sphinx.apidoc module."""
from collections import namedtuple

View File

@@ -1,5 +1,4 @@
"""Test the autodoc extension. This tests mainly for config variables
"""
"""Test the autodoc extension. This tests mainly for config variables"""
import platform
import sys

View File

@@ -1,5 +1,4 @@
"""Test the autodoc extension. This tests mainly for autodoc events
"""
"""Test the autodoc extension. This tests mainly for autodoc events"""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the autodoc extension.
"""
"""Test the autodoc extension."""
import abc
import sys

View File

@@ -1,5 +1,4 @@
"""Test the autodoc extension.
"""
"""Test the autodoc extension."""
import sys

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.autosectionlabel extension.
"""
"""Test sphinx.ext.autosectionlabel extension."""
import re

View File

@@ -1,5 +1,4 @@
"""Test the autosummary extension.
"""
"""Test the autosummary extension."""
import sys
from io import StringIO

View File

@@ -1,5 +1,4 @@
"""Test the coverage builder.
"""
"""Test the coverage builder."""
import pickle

View File

@@ -1,5 +1,4 @@
"""Test the doctest extension.
"""
"""Test the doctest extension."""
import os
from collections import Counter

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.duration extension.
"""
"""Test sphinx.ext.duration extension."""
import re

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.githubpages extension.
"""
"""Test sphinx.ext.githubpages extension."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.graphviz extension.
"""
"""Test sphinx.ext.graphviz extension."""
import re

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.ifconfig extension.
"""
"""Test sphinx.ext.ifconfig extension."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.imgconverter extension.
"""
"""Test sphinx.ext.imgconverter extension."""
import os

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.inheritance_diagram extension.
"""
"""Test sphinx.ext.inheritance_diagram extension."""
import os
import re

View File

@@ -1,5 +1,4 @@
"""Test the intersphinx extension.
"""
"""Test the intersphinx extension."""
import http.server
import os

View File

@@ -1,5 +1,4 @@
"""Test math extensions.
"""
"""Test math extensions."""
import re
import subprocess

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.todo extension.
"""
"""Test sphinx.ext.todo extension."""
import re

View File

@@ -1,5 +1,4 @@
"""Test sphinx.ext.viewcode extension.
"""
"""Test sphinx.ext.viewcode extension."""
import re

View File

@@ -1,5 +1,4 @@
"""Test sphinx.extension module.
"""
"""Test sphinx.extension module."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the Pygments highlighting bridge.
"""
"""Test the Pygments highlighting bridge."""
from unittest import mock

View File

@@ -1,5 +1,4 @@
"""Test locale.
"""
"""Test locale."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test various Sphinx-specific markup extensions.
"""
"""Test various Sphinx-specific markup extensions."""
import re

View File

@@ -1,5 +1,4 @@
"""Test our handling of metadata in files with bibliographic metadata.
"""
"""Test our handling of metadata in files with bibliographic metadata."""
# adapted from an example of bibliographic metadata at
# https://docutils.sourceforge.io/docs/user/rst/demo.txt

View File

@@ -1,5 +1,4 @@
"""Tests parsers module.
"""
"""Tests parsers module."""
from unittest.mock import Mock, patch

View File

@@ -1,5 +1,4 @@
"""Tests project module.
"""
"""Tests project module."""
from collections import OrderedDict

View File

@@ -1,5 +1,4 @@
"""Test pycode.
"""
"""Test pycode."""
import os
import sys

View File

@@ -1,5 +1,4 @@
"""Test pycode.ast
"""
"""Test pycode.ast"""
import sys

View File

@@ -1,5 +1,4 @@
"""Test pycode.parser.
"""
"""Test pycode.parser."""
from sphinx.pycode.parser import Parser
from sphinx.util.inspect import signature_from_str

View File

@@ -1,5 +1,4 @@
"""Test the sphinx.quickstart module.
"""
"""Test the sphinx.quickstart module."""
import time
from io import StringIO

View File

@@ -1,5 +1,4 @@
"""Test sphinx.roles
"""
"""Test sphinx.roles"""
from unittest.mock import Mock

View File

@@ -1,5 +1,4 @@
"""Test the search index builder.
"""
"""Test the search index builder."""
from collections import namedtuple
from io import BytesIO

View File

@@ -1,5 +1,4 @@
"""Test setup_command for distutils.
"""
"""Test setup_command for distutils."""
import os
import subprocess

View File

@@ -1,5 +1,4 @@
"""Test smart quotes.
"""
"""Test smart quotes."""
import pytest
from html5lib import HTMLParser

View File

@@ -1,5 +1,4 @@
"""Test templating.
"""
"""Test templating."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Test the Theme class.
"""
"""Test the Theme class."""
import os

View File

@@ -1,5 +1,4 @@
"""Test the HTML builder and check output against XPath.
"""
"""Test the HTML builder and check output against XPath."""
import re
import pytest

View File

@@ -1,5 +1,4 @@
"""Tests the post_transforms
"""
"""Tests the post_transforms"""
import pytest
from docutils import nodes

View File

@@ -1,5 +1,4 @@
"""Tests util functions.
"""
"""Tests util functions."""
import os
import tempfile

View File

@@ -1,5 +1,4 @@
"""Test sphinx.util.docstrings.
"""
"""Test sphinx.util.docstrings."""
from sphinx.util.docstrings import prepare_commentdoc, prepare_docstring, separate_metadata

View File

@@ -1,5 +1,4 @@
"""Tests util.utils functions.
"""
"""Tests util.utils functions."""
import os

View File

@@ -1,5 +1,4 @@
"""Tests sphinx.util.fileutil functions.
"""
"""Tests sphinx.util.fileutil functions."""
from unittest import mock

View File

@@ -1,5 +1,4 @@
"""Test i18n util.
"""
"""Test i18n util."""
import datetime
import os

View File

@@ -1,5 +1,4 @@
"""Test images util.
"""
"""Test images util."""
import pytest

View File

@@ -1,5 +1,4 @@
"""Tests util.inspect functions.
"""
"""Tests util.inspect functions."""
import ast
import datetime

View File

@@ -1,5 +1,4 @@
"""Test inventory util functions.
"""
"""Test inventory util functions."""
import posixpath
import zlib

View File

@@ -1,5 +1,4 @@
"""Test logging util.
"""
"""Test logging util."""
import codecs
import os

View File

@@ -1,5 +1,4 @@
"""Tests sphinx.util.matching functions.
"""
"""Tests sphinx.util.matching functions."""
from sphinx.util.matching import Matcher, compile_matchers

View File

@@ -1,5 +1,4 @@
"""Tests uti.nodes functions.
"""
"""Tests uti.nodes functions."""
from textwrap import dedent
from typing import Any

View File

@@ -1,5 +1,4 @@
"""Tests sphinx.util.rst functions.
"""
"""Tests sphinx.util.rst functions."""
from docutils.statemachine import StringList
from jinja2 import Environment

View File

@@ -1,5 +1,4 @@
"""Tests sphinx.util.template functions.
"""
"""Tests sphinx.util.template functions."""
from sphinx.util.template import ReSTRenderer

View File

@@ -1,5 +1,4 @@
"""Tests util.typing functions.
"""
"""Tests util.typing functions."""
import sys
from numbers import Integral

View File

@@ -1,5 +1,4 @@
"""Test the versioning implementation.
"""
"""Test the versioning implementation."""
import pickle

View File

@@ -1,5 +1,4 @@
"""Test the LaTeX writer
"""
"""Test the LaTeX writer"""
import pytest