From 00e5b16883c0a308722f689d48b28f50affe9248 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 17:26:43 +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/repo-helper/pyproject-parser: v0.13.0 → v0.14.0b1](https://github.com/repo-helper/pyproject-parser/compare/v0.13.0...v0.14.0b1) - [github.com/pre-commit/pre-commit-hooks: v3.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v3.4.0...v6.0.0) - [github.com/python-formate/flake8-dunder-all: v0.4.1 → v0.5.0](https://github.com/python-formate/flake8-dunder-all/compare/v0.4.1...v0.5.0) - [github.com/asottile/pyupgrade: v2.12.0 → v3.20.0](https://github.com/asottile/pyupgrade/compare/v2.12.0...v3.20.0) - [github.com/Lucas-C/pre-commit-hooks: v1.5.1 → v1.5.5](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.1...v1.5.5) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a17348..15d2249 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,12 +8,12 @@ ci: repos: - repo: https://github.com/repo-helper/pyproject-parser - rev: v0.13.0 + rev: v0.14.0b1 hooks: - id: reformat-pyproject - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -43,7 +43,7 @@ repos: - id: bind-requirements - repo: https://github.com/python-formate/flake8-dunder-all - rev: v0.4.1 + rev: v0.5.0 hooks: - id: ensure-dunder-all files: ^pprint36/.*\.py$ @@ -61,7 +61,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/asottile/pyupgrade - rev: v2.12.0 + rev: v3.20.0 hooks: - id: pyupgrade args: @@ -69,7 +69,7 @@ repos: - --keep-runtime-typing - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.1 + rev: v1.5.5 hooks: - id: remove-crlf - id: forbid-crlf From 1841ae27bdb77f92e5561531d9774e06d6d1066e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 18:15:38 +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_pprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pprint.py b/tests/test_pprint.py index 982159a..971f86e 100644 --- a/tests/test_pprint.py +++ b/tests/test_pprint.py @@ -174,7 +174,7 @@ def test_knotted(self): def test_unreadable(self): # Not recursive but not readable anyway pp = pprint.PrettyPrinter() - for unreadable in type(3), pprint, pprint.isrecursive: + for unreadable in int, pprint, pprint.isrecursive: # module-level convenience functions self.assertFalse(pprint.isrecursive(unreadable), f"expected not isrecursive for {unreadable!r}") self.assertFalse(pprint.isreadable(unreadable), f"expected not isreadable for {unreadable!r}")