diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81ed1d5f0..a80edd28c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.7" + rev: "v0.4.1" hooks: - id: ruff args: ["--fix"] @@ -43,7 +43,7 @@ repos: # on <3.11 - exceptiongroup>=1.0.0rc8 - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.7.0" + rev: "1.8.0" hooks: - id: pyproject-fmt # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version diff --git a/testing/io/test_saferepr.py b/testing/io/test_saferepr.py index eefa3f72b..5d270f175 100644 --- a/testing/io/test_saferepr.py +++ b/testing/io/test_saferepr.py @@ -79,7 +79,7 @@ def test_baseexception(): raise self.exc_type(*args) raise self.exc_type - def __str__(self): + def __str__(self): # noqa: PLE0307 self.raise_exc("__str__") def __repr__(self):