diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a17348..088ac36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: reformat-pyproject - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v5.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 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}")