diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9a3c064..d0b6fab9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.10" + rev: "v0.5.0" hooks: - id: ruff args: [--exit-non-zero-on-fix] diff --git a/tests/unit/test_core.py b/tests/unit/test_core.py index 07ac5bba..0934038f 100644 --- a/tests/unit/test_core.py +++ b/tests/unit/test_core.py @@ -140,7 +140,7 @@ def test__exit_with_violations() -> None: with pytest.raises(SystemExit) as e: Core._exit(violations) - assert e.type == SystemExit + assert e.type is SystemExit assert e.value.code == 1 @@ -148,7 +148,7 @@ def test__exit_without_violations() -> None: with pytest.raises(SystemExit) as e: Core._exit([]) - assert e.type == SystemExit + assert e.type is SystemExit assert e.value.code == 0