diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82299a924..28055658a 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.5.1" + rev: "v0.5.2" hooks: - id: ruff args: [--fix, --show-fixes] diff --git a/tests/unit/test_cost.py b/tests/unit/test_cost.py index 093723761..6a7d1a900 100644 --- a/tests/unit/test_cost.py +++ b/tests/unit/test_cost.py @@ -203,7 +203,7 @@ def test_costs(self, cost): e, de = cost.evaluateS1([0.5]) assert np.isscalar(e) - assert type(de) == np.ndarray + assert isinstance(de, np.ndarray) # Test exception for non-numeric inputs with pytest.raises(