From 5775912455c25ee82734e1ff319a32f55946d79b Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sun, 20 Feb 2022 03:05:56 +0000 Subject: Collapse single line docstrings --- tests/ext_napoleon_pep526_data_google.py | 3 +-- tests/ext_napoleon_pep526_data_numpy.py | 3 +-- tests/test_api_translator.py | 3 +-- tests/test_application.py | 3 +-- tests/test_build.py | 3 +-- tests/test_build_changes.py | 3 +-- tests/test_build_dirhtml.py | 3 +-- tests/test_build_epub.py | 3 +-- tests/test_build_gettext.py | 3 +-- tests/test_build_html.py | 3 +-- tests/test_build_latex.py | 3 +-- tests/test_build_linkcheck.py | 3 +-- tests/test_build_manpage.py | 3 +-- tests/test_build_texinfo.py | 3 +-- tests/test_build_text.py | 3 +-- tests/test_builder.py | 3 +-- tests/test_catalogs.py | 3 +-- tests/test_config.py | 3 +-- tests/test_correct_year.py | 3 +-- tests/test_directive_code.py | 3 +-- tests/test_directive_only.py | 3 +-- tests/test_directive_other.py | 3 +-- tests/test_directive_patch.py | 3 +-- tests/test_docutilsconf.py | 3 +-- tests/test_domain_c.py | 3 +-- tests/test_domain_cpp.py | 3 +-- tests/test_domain_js.py | 3 +-- tests/test_domain_py.py | 3 +-- tests/test_domain_rst.py | 3 +-- tests/test_domain_std.py | 3 +-- tests/test_environment.py | 3 +-- tests/test_environment_indexentries.py | 3 +-- tests/test_environment_toctree.py | 3 +-- tests/test_events.py | 3 +-- tests/test_ext_apidoc.py | 3 +-- tests/test_ext_autodoc_configs.py | 3 +-- tests/test_ext_autodoc_events.py | 3 +-- tests/test_ext_autodoc_mock.py | 3 +-- tests/test_ext_autodoc_preserve_defaults.py | 3 +-- tests/test_ext_autosectionlabel.py | 3 +-- tests/test_ext_autosummary.py | 3 +-- tests/test_ext_coverage.py | 3 +-- tests/test_ext_doctest.py | 3 +-- tests/test_ext_duration.py | 3 +-- tests/test_ext_githubpages.py | 3 +-- tests/test_ext_graphviz.py | 3 +-- tests/test_ext_ifconfig.py | 3 +-- tests/test_ext_imgconverter.py | 3 +-- tests/test_ext_inheritance_diagram.py | 3 +-- tests/test_ext_intersphinx.py | 3 +-- tests/test_ext_math.py | 3 +-- tests/test_ext_todo.py | 3 +-- tests/test_ext_viewcode.py | 3 +-- tests/test_extension.py | 3 +-- tests/test_highlighting.py | 3 +-- tests/test_locale.py | 3 +-- tests/test_markup.py | 3 +-- tests/test_metadata.py | 3 +-- tests/test_parser.py | 3 +-- tests/test_project.py | 3 +-- tests/test_pycode.py | 3 +-- tests/test_pycode_ast.py | 3 +-- tests/test_pycode_parser.py | 3 +-- tests/test_quickstart.py | 3 +-- tests/test_roles.py | 3 +-- tests/test_search.py | 3 +-- tests/test_setup_command.py | 3 +-- tests/test_smartquotes.py | 3 +-- tests/test_templating.py | 3 +-- tests/test_theming.py | 3 +-- tests/test_toctree.py | 3 +-- tests/test_transforms_post_transforms.py | 3 +-- tests/test_util.py | 3 +-- tests/test_util_docstrings.py | 3 +-- tests/test_util_docutils.py | 3 +-- tests/test_util_fileutil.py | 3 +-- tests/test_util_i18n.py | 3 +-- tests/test_util_images.py | 3 +-- tests/test_util_inspect.py | 3 +-- tests/test_util_inventory.py | 3 +-- tests/test_util_logging.py | 3 +-- tests/test_util_matching.py | 3 +-- tests/test_util_nodes.py | 3 +-- tests/test_util_rst.py | 3 +-- tests/test_util_template.py | 3 +-- tests/test_util_typing.py | 3 +-- tests/test_versioning.py | 3 +-- tests/test_writer_latex.py | 3 +-- 88 files changed, 88 insertions(+), 176 deletions(-) (limited to 'tests') diff --git a/tests/ext_napoleon_pep526_data_google.py b/tests/ext_napoleon_pep526_data_google.py index e9a00b72c..bb55b0fc2 100644 --- a/tests/ext_napoleon_pep526_data_google.py +++ b/tests/ext_napoleon_pep526_data_google.py @@ -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""" diff --git a/tests/ext_napoleon_pep526_data_numpy.py b/tests/ext_napoleon_pep526_data_numpy.py index 6d31973f5..b3093a7f4 100644 --- a/tests/ext_napoleon_pep526_data_numpy.py +++ b/tests/ext_napoleon_pep526_data_numpy.py @@ -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""" diff --git a/tests/test_api_translator.py b/tests/test_api_translator.py index d18d1eee2..aad5a2ccc 100644 --- a/tests/test_api_translator.py +++ b/tests/test_api_translator.py @@ -1,5 +1,4 @@ -"""Test the Sphinx API for translator. -""" +"""Test the Sphinx API for translator.""" import sys diff --git a/tests/test_application.py b/tests/test_application.py index 82dc88d74..365fff8ea 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -1,5 +1,4 @@ -"""Test the Sphinx class. -""" +"""Test the Sphinx class.""" from unittest.mock import Mock diff --git a/tests/test_build.py b/tests/test_build.py index 8cb4da0e4..f2af19565 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -1,5 +1,4 @@ -"""Test all builders. -""" +"""Test all builders.""" import sys from textwrap import dedent diff --git a/tests/test_build_changes.py b/tests/test_build_changes.py index d3ef56c5b..a4a07619b 100644 --- a/tests/test_build_changes.py +++ b/tests/test_build_changes.py @@ -1,5 +1,4 @@ -"""Test the ChangesBuilder class. -""" +"""Test the ChangesBuilder class.""" import pytest diff --git a/tests/test_build_dirhtml.py b/tests/test_build_dirhtml.py index ce16299a6..25598f795 100644 --- a/tests/test_build_dirhtml.py +++ b/tests/test_build_dirhtml.py @@ -1,5 +1,4 @@ -"""Test dirhtml builder. -""" +"""Test dirhtml builder.""" import posixpath diff --git a/tests/test_build_epub.py b/tests/test_build_epub.py index 820ac9727..4ba29df85 100644 --- a/tests/test_build_epub.py +++ b/tests/test_build_epub.py @@ -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 diff --git a/tests/test_build_gettext.py b/tests/test_build_gettext.py index 370efa777..6d80324bd 100644 --- a/tests/test_build_gettext.py +++ b/tests/test_build_gettext.py @@ -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 diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 660d7f7ec..f50f72a9c 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -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 diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 7ac9bdcbb..938e8a820 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -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 diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py index 2c8d8f3eb..d5684ba6c 100644 --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -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 diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py index c890b4734..c6139c2bf 100644 --- a/tests/test_build_manpage.py +++ b/tests/test_build_manpage.py @@ -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 diff --git a/tests/test_build_texinfo.py b/tests/test_build_texinfo.py index 3dfb43c11..ccdbd9bd3 100644 --- a/tests/test_build_texinfo.py +++ b/tests/test_build_texinfo.py @@ -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 diff --git a/tests/test_build_text.py b/tests/test_build_text.py index a8420d79e..0578e425e 100644 --- a/tests/test_build_text.py +++ b/tests/test_build_text.py @@ -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 diff --git a/tests/test_builder.py b/tests/test_builder.py index c51e1203f..c866a9720 100644 --- a/tests/test_builder.py +++ b/tests/test_builder.py @@ -1,5 +1,4 @@ -"""Test the Builder class. -""" +"""Test the Builder class.""" import pytest diff --git a/tests/test_catalogs.py b/tests/test_catalogs.py index 4e21bf0cb..74aa7077a 100644 --- a/tests/test_catalogs.py +++ b/tests/test_catalogs.py @@ -1,5 +1,4 @@ -"""Test the base build process. -""" +"""Test the base build process.""" import shutil import pytest diff --git a/tests/test_config.py b/tests/test_config.py index 83aca3ae1..7981dd7a9 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,5 +1,4 @@ -"""Test the sphinx.config.Config class. -""" +"""Test the sphinx.config.Config class.""" from unittest import mock diff --git a/tests/test_correct_year.py b/tests/test_correct_year.py index a672049b3..3855df913 100644 --- a/tests/test_correct_year.py +++ b/tests/test_correct_year.py @@ -1,5 +1,4 @@ -"""Test copyright year adjustment -""" +"""Test copyright year adjustment""" import pytest diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py index 824c304ff..98a9aa899 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -1,5 +1,4 @@ -"""Test the code-block directive. -""" +"""Test the code-block directive.""" import os diff --git a/tests/test_directive_only.py b/tests/test_directive_only.py index e35fba580..2e9ea634c 100644 --- a/tests/test_directive_only.py +++ b/tests/test_directive_only.py @@ -1,5 +1,4 @@ -"""Test the only directive with the test root. -""" +"""Test the only directive with the test root.""" import re diff --git a/tests/test_directive_other.py b/tests/test_directive_other.py index e9bb147ed..f221db075 100644 --- a/tests/test_directive_other.py +++ b/tests/test_directive_other.py @@ -1,5 +1,4 @@ -"""Test the other directives. -""" +"""Test the other directives.""" import pytest from docutils import nodes diff --git a/tests/test_directive_patch.py b/tests/test_directive_patch.py index 23877ae13..f4eb8f9db 100644 --- a/tests/test_directive_patch.py +++ b/tests/test_directive_patch.py @@ -1,5 +1,4 @@ -"""Test the patched directives. -""" +"""Test the patched directives.""" import pytest from docutils import nodes diff --git a/tests/test_docutilsconf.py b/tests/test_docutilsconf.py index a18eb7043..def6cb67d 100644 --- a/tests/test_docutilsconf.py +++ b/tests/test_docutilsconf.py @@ -1,5 +1,4 @@ -"""Test docutils.conf support for several writers. -""" +"""Test docutils.conf support for several writers.""" import pytest from docutils import nodes diff --git a/tests/test_domain_c.py b/tests/test_domain_c.py index c3d14b239..16a71d9fe 100644 --- a/tests/test_domain_c.py +++ b/tests/test_domain_c.py @@ -1,5 +1,4 @@ -"""Tests the C Domain -""" +"""Tests the C Domain""" import itertools import zlib diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index f3b641414..234f6570e 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -1,5 +1,4 @@ -"""Tests the C++ Domain -""" +"""Tests the C++ Domain""" import itertools import re diff --git a/tests/test_domain_js.py b/tests/test_domain_js.py index 773db4bb8..465fef328 100644 --- a/tests/test_domain_js.py +++ b/tests/test_domain_js.py @@ -1,5 +1,4 @@ -"""Tests the JavaScript Domain -""" +"""Tests the JavaScript Domain""" from unittest.mock import Mock diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py index 75d46a46f..4205ada13 100644 --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -1,5 +1,4 @@ -"""Tests the Python Domain -""" +"""Tests the Python Domain""" import re import sys diff --git a/tests/test_domain_rst.py b/tests/test_domain_rst.py index afe7ae8b8..df19ffdb2 100644 --- a/tests/test_domain_rst.py +++ b/tests/test_domain_rst.py @@ -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, diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py index 42c0e0ce0..e92030517 100644 --- a/tests/test_domain_std.py +++ b/tests/test_domain_std.py @@ -1,5 +1,4 @@ -"""Tests the std domain -""" +"""Tests the std domain""" from unittest import mock diff --git a/tests/test_environment.py b/tests/test_environment.py index e244d3841..7ffca7898 100644 --- a/tests/test_environment.py +++ b/tests/test_environment.py @@ -1,5 +1,4 @@ -"""Test the BuildEnvironment class. -""" +"""Test the BuildEnvironment class.""" import os import shutil diff --git a/tests/test_environment_indexentries.py b/tests/test_environment_indexentries.py index 38fc3021e..5b7678499 100644 --- a/tests/test_environment_indexentries.py +++ b/tests/test_environment_indexentries.py @@ -1,5 +1,4 @@ -"""Test the sphinx.environment.managers.indexentries. -""" +"""Test the sphinx.environment.managers.indexentries.""" import pytest diff --git a/tests/test_environment_toctree.py b/tests/test_environment_toctree.py index 803519261..588bcac18 100644 --- a/tests/test_environment_toctree.py +++ b/tests/test_environment_toctree.py @@ -1,5 +1,4 @@ -"""Test the sphinx.environment.managers.toctree. -""" +"""Test the sphinx.environment.managers.toctree.""" import pytest from docutils import nodes diff --git a/tests/test_events.py b/tests/test_events.py index 44d80f1c0..f36c86a87 100644 --- a/tests/test_events.py +++ b/tests/test_events.py @@ -1,5 +1,4 @@ -"""Test the EventManager class. -""" +"""Test the EventManager class.""" import pytest diff --git a/tests/test_ext_apidoc.py b/tests/test_ext_apidoc.py index c58882c6e..7aba847a3 100644 --- a/tests/test_ext_apidoc.py +++ b/tests/test_ext_apidoc.py @@ -1,5 +1,4 @@ -"""Test the sphinx.apidoc module. -""" +"""Test the sphinx.apidoc module.""" from collections import namedtuple diff --git a/tests/test_ext_autodoc_configs.py b/tests/test_ext_autodoc_configs.py index 3ed2fc38b..f3d5ffe06 100644 --- a/tests/test_ext_autodoc_configs.py +++ b/tests/test_ext_autodoc_configs.py @@ -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 diff --git a/tests/test_ext_autodoc_events.py b/tests/test_ext_autodoc_events.py index bde25cd37..91e1d27d2 100644 --- a/tests/test_ext_autodoc_events.py +++ b/tests/test_ext_autodoc_events.py @@ -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 diff --git a/tests/test_ext_autodoc_mock.py b/tests/test_ext_autodoc_mock.py index 43493959f..0f3288c28 100644 --- a/tests/test_ext_autodoc_mock.py +++ b/tests/test_ext_autodoc_mock.py @@ -1,5 +1,4 @@ -"""Test the autodoc extension. -""" +"""Test the autodoc extension.""" import abc import sys diff --git a/tests/test_ext_autodoc_preserve_defaults.py b/tests/test_ext_autodoc_preserve_defaults.py index bb239a2bb..563bfe35b 100644 --- a/tests/test_ext_autodoc_preserve_defaults.py +++ b/tests/test_ext_autodoc_preserve_defaults.py @@ -1,5 +1,4 @@ -"""Test the autodoc extension. -""" +"""Test the autodoc extension.""" import sys diff --git a/tests/test_ext_autosectionlabel.py b/tests/test_ext_autosectionlabel.py index 4aaf010bb..7345ca3ff 100644 --- a/tests/test_ext_autosectionlabel.py +++ b/tests/test_ext_autosectionlabel.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.autosectionlabel extension. -""" +"""Test sphinx.ext.autosectionlabel extension.""" import re diff --git a/tests/test_ext_autosummary.py b/tests/test_ext_autosummary.py index 26909080d..fd77db816 100644 --- a/tests/test_ext_autosummary.py +++ b/tests/test_ext_autosummary.py @@ -1,5 +1,4 @@ -"""Test the autosummary extension. -""" +"""Test the autosummary extension.""" import sys from io import StringIO diff --git a/tests/test_ext_coverage.py b/tests/test_ext_coverage.py index 803e234e2..ee179a86b 100644 --- a/tests/test_ext_coverage.py +++ b/tests/test_ext_coverage.py @@ -1,5 +1,4 @@ -"""Test the coverage builder. -""" +"""Test the coverage builder.""" import pickle diff --git a/tests/test_ext_doctest.py b/tests/test_ext_doctest.py index 6cfff441f..6e8a4123e 100644 --- a/tests/test_ext_doctest.py +++ b/tests/test_ext_doctest.py @@ -1,5 +1,4 @@ -"""Test the doctest extension. -""" +"""Test the doctest extension.""" import os from collections import Counter diff --git a/tests/test_ext_duration.py b/tests/test_ext_duration.py index 05f3ef422..4fa4dfc30 100644 --- a/tests/test_ext_duration.py +++ b/tests/test_ext_duration.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.duration extension. -""" +"""Test sphinx.ext.duration extension.""" import re diff --git a/tests/test_ext_githubpages.py b/tests/test_ext_githubpages.py index 7f60d7492..445719e12 100644 --- a/tests/test_ext_githubpages.py +++ b/tests/test_ext_githubpages.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.githubpages extension. -""" +"""Test sphinx.ext.githubpages extension.""" import pytest diff --git a/tests/test_ext_graphviz.py b/tests/test_ext_graphviz.py index c6a688bb5..7ffe7ead2 100644 --- a/tests/test_ext_graphviz.py +++ b/tests/test_ext_graphviz.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.graphviz extension. -""" +"""Test sphinx.ext.graphviz extension.""" import re diff --git a/tests/test_ext_ifconfig.py b/tests/test_ext_ifconfig.py index 1a6625026..3c4651b3f 100644 --- a/tests/test_ext_ifconfig.py +++ b/tests/test_ext_ifconfig.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.ifconfig extension. -""" +"""Test sphinx.ext.ifconfig extension.""" import pytest diff --git a/tests/test_ext_imgconverter.py b/tests/test_ext_imgconverter.py index 8fee95746..134947c87 100644 --- a/tests/test_ext_imgconverter.py +++ b/tests/test_ext_imgconverter.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.imgconverter extension. -""" +"""Test sphinx.ext.imgconverter extension.""" import os diff --git a/tests/test_ext_inheritance_diagram.py b/tests/test_ext_inheritance_diagram.py index db7944218..a6218eccc 100644 --- a/tests/test_ext_inheritance_diagram.py +++ b/tests/test_ext_inheritance_diagram.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.inheritance_diagram extension. -""" +"""Test sphinx.ext.inheritance_diagram extension.""" import os import re diff --git a/tests/test_ext_intersphinx.py b/tests/test_ext_intersphinx.py index 8e45890aa..7d52ff95e 100644 --- a/tests/test_ext_intersphinx.py +++ b/tests/test_ext_intersphinx.py @@ -1,5 +1,4 @@ -"""Test the intersphinx extension. -""" +"""Test the intersphinx extension.""" import http.server import os diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py index b251e41d2..e3345e627 100644 --- a/tests/test_ext_math.py +++ b/tests/test_ext_math.py @@ -1,5 +1,4 @@ -"""Test math extensions. -""" +"""Test math extensions.""" import re import subprocess diff --git a/tests/test_ext_todo.py b/tests/test_ext_todo.py index 15ecc1bed..ffe8bd995 100644 --- a/tests/test_ext_todo.py +++ b/tests/test_ext_todo.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.todo extension. -""" +"""Test sphinx.ext.todo extension.""" import re diff --git a/tests/test_ext_viewcode.py b/tests/test_ext_viewcode.py index 11aacfc43..c2e195428 100644 --- a/tests/test_ext_viewcode.py +++ b/tests/test_ext_viewcode.py @@ -1,5 +1,4 @@ -"""Test sphinx.ext.viewcode extension. -""" +"""Test sphinx.ext.viewcode extension.""" import re diff --git a/tests/test_extension.py b/tests/test_extension.py index d2cd37567..d74743cca 100644 --- a/tests/test_extension.py +++ b/tests/test_extension.py @@ -1,5 +1,4 @@ -"""Test sphinx.extension module. -""" +"""Test sphinx.extension module.""" import pytest diff --git a/tests/test_highlighting.py b/tests/test_highlighting.py index dc23116a7..92276a21c 100644 --- a/tests/test_highlighting.py +++ b/tests/test_highlighting.py @@ -1,5 +1,4 @@ -"""Test the Pygments highlighting bridge. -""" +"""Test the Pygments highlighting bridge.""" from unittest import mock diff --git a/tests/test_locale.py b/tests/test_locale.py index 99a335cff..1dcad64eb 100644 --- a/tests/test_locale.py +++ b/tests/test_locale.py @@ -1,5 +1,4 @@ -"""Test locale. -""" +"""Test locale.""" import pytest diff --git a/tests/test_markup.py b/tests/test_markup.py index 030323e90..39ad62784 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -1,5 +1,4 @@ -"""Test various Sphinx-specific markup extensions. -""" +"""Test various Sphinx-specific markup extensions.""" import re diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 7cc0aa3c7..7f3199705 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -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 diff --git a/tests/test_parser.py b/tests/test_parser.py index 2c9462936..86163c6ad 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -1,5 +1,4 @@ -"""Tests parsers module. -""" +"""Tests parsers module.""" from unittest.mock import Mock, patch diff --git a/tests/test_project.py b/tests/test_project.py index 1f4c4709f..40db85ef3 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -1,5 +1,4 @@ -"""Tests project module. -""" +"""Tests project module.""" from collections import OrderedDict diff --git a/tests/test_pycode.py b/tests/test_pycode.py index 560dbc8a2..1f9882eb9 100644 --- a/tests/test_pycode.py +++ b/tests/test_pycode.py @@ -1,5 +1,4 @@ -"""Test pycode. -""" +"""Test pycode.""" import os import sys diff --git a/tests/test_pycode_ast.py b/tests/test_pycode_ast.py index c3e256338..6143105eb 100644 --- a/tests/test_pycode_ast.py +++ b/tests/test_pycode_ast.py @@ -1,5 +1,4 @@ -"""Test pycode.ast -""" +"""Test pycode.ast""" import sys diff --git a/tests/test_pycode_parser.py b/tests/test_pycode_parser.py index cebcb97a3..5d2496ba5 100644 --- a/tests/test_pycode_parser.py +++ b/tests/test_pycode_parser.py @@ -1,5 +1,4 @@ -"""Test pycode.parser. -""" +"""Test pycode.parser.""" from sphinx.pycode.parser import Parser from sphinx.util.inspect import signature_from_str diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py index 4b79ee131..1ea85b19b 100644 --- a/tests/test_quickstart.py +++ b/tests/test_quickstart.py @@ -1,5 +1,4 @@ -"""Test the sphinx.quickstart module. -""" +"""Test the sphinx.quickstart module.""" import time from io import StringIO diff --git a/tests/test_roles.py b/tests/test_roles.py index 70762f48e..67a13c8ef 100644 --- a/tests/test_roles.py +++ b/tests/test_roles.py @@ -1,5 +1,4 @@ -"""Test sphinx.roles -""" +"""Test sphinx.roles""" from unittest.mock import Mock diff --git a/tests/test_search.py b/tests/test_search.py index 0568afa8f..024e6941c 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -1,5 +1,4 @@ -"""Test the search index builder. -""" +"""Test the search index builder.""" from collections import namedtuple from io import BytesIO diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py index 95c4ae201..054912feb 100644 --- a/tests/test_setup_command.py +++ b/tests/test_setup_command.py @@ -1,5 +1,4 @@ -"""Test setup_command for distutils. -""" +"""Test setup_command for distutils.""" import os import subprocess diff --git a/tests/test_smartquotes.py b/tests/test_smartquotes.py index 6233a38e4..6cfb716e4 100644 --- a/tests/test_smartquotes.py +++ b/tests/test_smartquotes.py @@ -1,5 +1,4 @@ -"""Test smart quotes. -""" +"""Test smart quotes.""" import pytest from html5lib import HTMLParser diff --git a/tests/test_templating.py b/tests/test_templating.py index 4f1ef64ee..7a6f1f004 100644 --- a/tests/test_templating.py +++ b/tests/test_templating.py @@ -1,5 +1,4 @@ -"""Test templating. -""" +"""Test templating.""" import pytest diff --git a/tests/test_theming.py b/tests/test_theming.py index 11173fd9b..21382d84b 100644 --- a/tests/test_theming.py +++ b/tests/test_theming.py @@ -1,5 +1,4 @@ -"""Test the Theme class. -""" +"""Test the Theme class.""" import os diff --git a/tests/test_toctree.py b/tests/test_toctree.py index e4d77051f..e1afa4bb9 100644 --- a/tests/test_toctree.py +++ b/tests/test_toctree.py @@ -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 diff --git a/tests/test_transforms_post_transforms.py b/tests/test_transforms_post_transforms.py index 6534dd9b4..e5ec8ad14 100644 --- a/tests/test_transforms_post_transforms.py +++ b/tests/test_transforms_post_transforms.py @@ -1,5 +1,4 @@ -"""Tests the post_transforms -""" +"""Tests the post_transforms""" import pytest from docutils import nodes diff --git a/tests/test_util.py b/tests/test_util.py index c676113f8..e93e6586c 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,5 +1,4 @@ -"""Tests util functions. -""" +"""Tests util functions.""" import os import tempfile diff --git a/tests/test_util_docstrings.py b/tests/test_util_docstrings.py index 05e7b7523..813e84e97 100644 --- a/tests/test_util_docstrings.py +++ b/tests/test_util_docstrings.py @@ -1,5 +1,4 @@ -"""Test sphinx.util.docstrings. -""" +"""Test sphinx.util.docstrings.""" from sphinx.util.docstrings import prepare_commentdoc, prepare_docstring, separate_metadata diff --git a/tests/test_util_docutils.py b/tests/test_util_docutils.py index d6f97909d..41022dd99 100644 --- a/tests/test_util_docutils.py +++ b/tests/test_util_docutils.py @@ -1,5 +1,4 @@ -"""Tests util.utils functions. -""" +"""Tests util.utils functions.""" import os diff --git a/tests/test_util_fileutil.py b/tests/test_util_fileutil.py index 11a5a8557..27f95e644 100644 --- a/tests/test_util_fileutil.py +++ b/tests/test_util_fileutil.py @@ -1,5 +1,4 @@ -"""Tests sphinx.util.fileutil functions. -""" +"""Tests sphinx.util.fileutil functions.""" from unittest import mock diff --git a/tests/test_util_i18n.py b/tests/test_util_i18n.py index ee9a640ef..bf4bdbdc6 100644 --- a/tests/test_util_i18n.py +++ b/tests/test_util_i18n.py @@ -1,5 +1,4 @@ -"""Test i18n util. -""" +"""Test i18n util.""" import datetime import os diff --git a/tests/test_util_images.py b/tests/test_util_images.py index dd0648a83..52fb5e990 100644 --- a/tests/test_util_images.py +++ b/tests/test_util_images.py @@ -1,5 +1,4 @@ -"""Test images util. -""" +"""Test images util.""" import pytest diff --git a/tests/test_util_inspect.py b/tests/test_util_inspect.py index 3987beb24..865bd0650 100644 --- a/tests/test_util_inspect.py +++ b/tests/test_util_inspect.py @@ -1,5 +1,4 @@ -"""Tests util.inspect functions. -""" +"""Tests util.inspect functions.""" import ast import datetime diff --git a/tests/test_util_inventory.py b/tests/test_util_inventory.py index ce96085e3..e79602330 100644 --- a/tests/test_util_inventory.py +++ b/tests/test_util_inventory.py @@ -1,5 +1,4 @@ -"""Test inventory util functions. -""" +"""Test inventory util functions.""" import posixpath import zlib diff --git a/tests/test_util_logging.py b/tests/test_util_logging.py index 0c2b914b0..49cd2c11e 100644 --- a/tests/test_util_logging.py +++ b/tests/test_util_logging.py @@ -1,5 +1,4 @@ -"""Test logging util. -""" +"""Test logging util.""" import codecs import os diff --git a/tests/test_util_matching.py b/tests/test_util_matching.py index 559fa7aff..ee1d3b2cb 100644 --- a/tests/test_util_matching.py +++ b/tests/test_util_matching.py @@ -1,5 +1,4 @@ -"""Tests sphinx.util.matching functions. -""" +"""Tests sphinx.util.matching functions.""" from sphinx.util.matching import Matcher, compile_matchers diff --git a/tests/test_util_nodes.py b/tests/test_util_nodes.py index d73929b9c..031569d4c 100644 --- a/tests/test_util_nodes.py +++ b/tests/test_util_nodes.py @@ -1,5 +1,4 @@ -"""Tests uti.nodes functions. -""" +"""Tests uti.nodes functions.""" from textwrap import dedent from typing import Any diff --git a/tests/test_util_rst.py b/tests/test_util_rst.py index 61012e0af..40a2ee68b 100644 --- a/tests/test_util_rst.py +++ b/tests/test_util_rst.py @@ -1,5 +1,4 @@ -"""Tests sphinx.util.rst functions. -""" +"""Tests sphinx.util.rst functions.""" from docutils.statemachine import StringList from jinja2 import Environment diff --git a/tests/test_util_template.py b/tests/test_util_template.py index c2f896968..4601179c1 100644 --- a/tests/test_util_template.py +++ b/tests/test_util_template.py @@ -1,5 +1,4 @@ -"""Tests sphinx.util.template functions. -""" +"""Tests sphinx.util.template functions.""" from sphinx.util.template import ReSTRenderer diff --git a/tests/test_util_typing.py b/tests/test_util_typing.py index cf6ef0ebf..af2e5285b 100644 --- a/tests/test_util_typing.py +++ b/tests/test_util_typing.py @@ -1,5 +1,4 @@ -"""Tests util.typing functions. -""" +"""Tests util.typing functions.""" import sys from numbers import Integral diff --git a/tests/test_versioning.py b/tests/test_versioning.py index e32290aad..107e21560 100644 --- a/tests/test_versioning.py +++ b/tests/test_versioning.py @@ -1,5 +1,4 @@ -"""Test the versioning implementation. -""" +"""Test the versioning implementation.""" import pickle diff --git a/tests/test_writer_latex.py b/tests/test_writer_latex.py index f68694e4e..d51879949 100644 --- a/tests/test_writer_latex.py +++ b/tests/test_writer_latex.py @@ -1,5 +1,4 @@ -"""Test the LaTeX writer -""" +"""Test the LaTeX writer""" import pytest -- cgit v1.2.1