Skip to content

Commit

Permalink
Merge pull request #408 from pybop-team/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
chore: update pre-commit hooks
  • Loading branch information
BradyPlanden committed Jul 16, 2024
2 parents ca170c8 + 4f7eb59 commit e34099f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e34099f

Please sign in to comment.