From cb783ccdd67bb8eda3258111078a0daf485ab413 Mon Sep 17 00:00:00 2001 From: chrysle Date: Sun, 25 Feb 2024 07:36:55 +0100 Subject: [PATCH] Sort Sphinx extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) --- docs/conf.py | 6 +++++- docs/requirements.in | 2 +- tests/test_cli_compile.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 697e1ece..f05d2fa0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -36,7 +36,11 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["myst_parser", "sphinxcontrib.programoutput", "sphinxcontrib.apidoc"] +extensions = [ + "myst_parser", + "sphinxcontrib.apidoc", + "sphinxcontrib.programoutput", +] # -- Options for HTML output ------------------------------------------------- diff --git a/docs/requirements.in b/docs/requirements.in index 895ab94b..b772fde2 100644 --- a/docs/requirements.in +++ b/docs/requirements.in @@ -2,5 +2,5 @@ furo myst-parser setuptools-scm sphinx -sphinxcontrib-programoutput sphinxcontrib-apidoc +sphinxcontrib-programoutput diff --git a/tests/test_cli_compile.py b/tests/test_cli_compile.py index eba8cb05..fa5f6862 100644 --- a/tests/test_cli_compile.py +++ b/tests/test_cli_compile.py @@ -456,7 +456,7 @@ def test_run_as_module_compile(): # Should have run pip-compile successfully. assert result.stdout.startswith(b"Usage:") - assert b"Compiles requirements.txt from requirements.in" in result.stdout + assert b"Compile requirements.txt from source files" in result.stdout def test_editable_package(pip_conf, runner):