From 2ecd427890b8c7eeb7c45f7e015da7b3e72eb59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 15 Dec 2025 16:13:12 -0800 Subject: [PATCH] Fix test suite (#267) --- .pre-commit-config.yaml | 2 +- pyproject.toml | 6 +++--- tests/test_logic.py | 4 ++-- tox.ini | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 159f4bb..2a804ef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: rev: v2.4.1 hooks: - id: codespell - additional_dependencies: ["tomli>=2.2.1"] + additional_dependencies: ["tomli>=2.3"] - repo: https://github.com/tox-dev/tox-ini-fmt rev: "1.7.0" hooks: diff --git a/pyproject.toml b/pyproject.toml index f760b4c..fd6c17d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ build-backend = "hatchling.build" requires = [ "hatch-vcs>=0.5", - "hatchling>=1.27", + "hatchling>=1.28", ] [project] @@ -39,12 +39,12 @@ dynamic = [ "version", ] dependencies = [ - "sphinx>=8.2.3", + "sphinx>=9.0.4", ] optional-dependencies.testing = [ "covdefaults>=2.3", "defusedxml>=0.7.1", # needed for sphinx.testing - "pytest>=8.4.2", + "pytest>=9.0.2", "pytest-cov>=7", ] urls.Documentation = "https://github.com/tox-dev/sphinx-argparse-cli#sphinx-argparse-cli" diff --git a/tests/test_logic.py b/tests/test_logic.py index b3d1680..ffbba28 100644 --- a/tests/test_logic.py +++ b/tests/test_logic.py @@ -99,7 +99,7 @@ def test_set_description_as_text(build_outcome: str) -> None: @pytest.mark.sphinx(buildername="text", testroot="description-empty") def test_empty_description_as_text(build_outcome: str) -> None: - assert build_outcome == "foo - CLI interface\n*******************\n\n foo\n" + assert build_outcome == "foo - CLI interface\n*******************\n\n\n foo\n" @pytest.mark.sphinx(buildername="html", testroot="description-multiline") @@ -121,7 +121,7 @@ def test_set_epilog_as_text(build_outcome: str) -> None: @pytest.mark.sphinx(buildername="text", testroot="epilog-empty") def test_empty_epilog_as_text(build_outcome: str) -> None: - assert build_outcome == "foo - CLI interface\n*******************\n\n foo\n" + assert build_outcome == "foo - CLI interface\n*******************\n\n foo\n\n" @pytest.mark.sphinx(buildername="html", testroot="epilog-multiline") diff --git a/tox.ini b/tox.ini index a570bfc..8fbcabc 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] requires = - tox>=4.30.2 - tox-uv>=1.28 + tox>=4.32 + tox-uv>=1.29 env_list = fix 3.14 @@ -35,15 +35,15 @@ commands = description = format the code base to adhere to our styles, and complain about what we cannot do automatically skip_install = true deps = - pre-commit-uv>=4.1.5 + pre-commit-uv>=4.2 commands = pre-commit run --all-files --show-diff-on-failure [testenv:type] description = run type check on code base deps = - mypy==1.18.2 - types-docutils>=0.22.2.20250924 + mypy==1.19 + types-docutils>=0.22.3.20251115 commands = mypy src tests {posargs} @@ -53,7 +53,7 @@ skip_install = true deps = check-wheel-contents>=0.6.3 twine>=6.2 - uv>=0.8.22 + uv>=0.9.16 commands = uv build --sdist --wheel --out-dir {env_tmp_dir} . twine check {env_tmp_dir}{/}*