diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1d03a327..a1e74b32 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.7.1 + rev: v0.14.1 hooks: - id: ruff args: [ --fix ] diff --git a/pyproject.toml b/pyproject.toml index cae77474..a6bf2582 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.ruff] -exclude = [ +extend-exclude = [ "*.pyi", "__init__.py", "_version.py", diff --git a/tests/test_mypy.py b/tests/test_mypy.py index 07982eb8..ade105eb 100644 --- a/tests/test_mypy.py +++ b/tests/test_mypy.py @@ -32,8 +32,8 @@ def test_mypy(): try: exec(check, {"typ": typ}) except Exception: - assert ( - False - ), f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}" + assert False, ( + f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}" + ) elif "success" not in line.lower(): assert False, line diff --git a/tests/test_pyright.py b/tests/test_pyright.py index dd591f23..55c1519c 100644 --- a/tests/test_pyright.py +++ b/tests/test_pyright.py @@ -30,6 +30,6 @@ def test_pyright(): try: exec(check, {"typ": typ}) except Exception: - assert ( - False - ), f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}" + assert False, ( + f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}" + )