From fbe5c9d23b9ddba61ba17b3eac28c0e26379ca2a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:31:28 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: v2.12.1 → v2.14.2](https://github.com/tox-dev/pyproject-fmt/compare/v2.12.1...v2.14.2) - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dfecd3f..fd4cf5d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.12.1" + rev: "v2.14.2" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.14" + rev: "v0.15.0" hooks: - id: ruff-format - id: ruff From 948630f363f5b43d7aa271f0506992f92c702de4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:32:09 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 3 +-- tests/test_logic.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fd6c17d..f9d3ff5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ keywords = [ license = "MIT" maintainers = [ { name = "Bernat Gabor", email = "gaborjbernat@gmail.com" }, -] # noqa: E999 +] requires-python = ">=3.11" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -82,7 +82,6 @@ lint.ignore = [ "ISC001", # Conflict with formatter "S104", # Possible binding to all interface ] - lint.per-file-ignores."roots/**/*.py" = [ "D", # no docs "INP001", # no namespace diff --git a/tests/test_logic.py b/tests/test_logic.py index ffbba28..457e60d 100644 --- a/tests/test_logic.py +++ b/tests/test_logic.py @@ -148,8 +148,8 @@ def test_usage_width_custom(build_outcome: str) -> None: @pytest.mark.sphinx(buildername="text", testroot="complex") @pytest.mark.prepare(directive_args=[":usage_first:"]) def test_set_usage_first(build_outcome: str) -> None: - assert "complex [-h]" in build_outcome.split("argparse tester")[0] - assert "complex first [-h]" in build_outcome.split("a-first-desc")[0] + assert "complex [-h]" in build_outcome.split("argparse tester", maxsplit=1)[0] + assert "complex first [-h]" in build_outcome.split("a-first-desc", maxsplit=1)[0] @pytest.mark.sphinx(buildername="text", testroot="suppressed-action")