diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57486c84e..58c47fa1c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,13 +16,13 @@ repos: args: [--fix, lf] - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.10" + rev: "v0.17.1" hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.30.1 + rev: v1.31.1 hooks: - id: zizmor args: [--pedantic] diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py index 96861577c..3fd204661 100644 --- a/jsonschema/exceptions.py +++ b/jsonschema/exceptions.py @@ -247,7 +247,9 @@ class _RefResolutionError(Exception): # noqa: PLW1641 def __eq__(self, other): if self.__class__ is not other.__class__: - return NotImplemented # pragma: no cover -- uncovered but deprecated # noqa: E501 + return ( + NotImplemented # pragma: no cover -- uncovered but deprecated # noqa: E501 + ) return self._cause == other._cause def __str__(self) -> str: