diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e5c6f51f5..47ef467c5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,7 +4,7 @@ ci:
 
 repos:
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: "v0.4.10"
+    rev: "v0.5.0"
     hooks:
       - id: ruff
         args: [--fix, --show-fixes]
diff --git a/tests/plotting/test_plotly_manager.py b/tests/plotting/test_plotly_manager.py
index 80bc3bb58..ba0adbd8b 100644
--- a/tests/plotting/test_plotly_manager.py
+++ b/tests/plotting/test_plotly_manager.py
@@ -95,7 +95,7 @@ def test_cancel_installation(mocker, uninstall_plotly_if_installed):
     with pytest.raises(SystemExit) as pytest_wrapped_e:
         PlotlyManager().prompt_for_plotly_installation()
 
-    assert pytest_wrapped_e.type == SystemExit
+    assert pytest_wrapped_e.type is SystemExit
     assert pytest_wrapped_e.value.code == 1
     assert not is_package_installed("plotly")