From de420acfe0e535b156a7874eca157aabfa409ade Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 16:38:03 +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/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.7 → v0.14.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.7...v0.14.13) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.19.1) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df8e78c..abfdc36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ exclude: > repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: check-json - id: check-yaml @@ -19,13 +19,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.7 + rev: v0.14.13 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.19.1 hooks: - id: mypy From 25bf2c1e30e3fda072a522423e7193d4a880c6f8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 16:39:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_collectors.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_collectors.py b/tests/test_collectors.py index 9c7fd7c..261430e 100644 --- a/tests/test_collectors.py +++ b/tests/test_collectors.py @@ -343,9 +343,9 @@ def test_to_roman_comprehensive(self, collector): ] for num, expected in test_cases: result = collector._TocTreeCollectorWithStyles__to_roman(num) - assert ( - result == expected - ), f"Failed for {num}: got {result}, expected {expected}" + assert result == expected, ( + f"Failed for {num}: got {result}, expected {expected}" + ) def test_to_alpha_comprehensive(self, collector): """Test alphabetical conversion comprehensively.""" @@ -364,9 +364,9 @@ def test_to_alpha_comprehensive(self, collector): ] for num, expected in test_cases: result = collector._TocTreeCollectorWithStyles__to_alpha(num) - assert ( - result == expected - ), f"Failed for {num}: got {result}, expected {expected}" + assert result == expected, ( + f"Failed for {num}: got {result}, expected {expected}" + ) def test_disable_builtin_multiple_collectors(self): """Test disabling with multiple collectors in memory."""