Skip to content

Commit

Permalink
chore: update pre-commit hooks (#4616)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.4...v0.8.0)

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Nov 25, 2024
1 parent dc5dbd3 commit 403e1d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 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.7.4"
rev: "v0.8.0"
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
30 changes: 17 additions & 13 deletions tests/unit/test_solvers/test_idaklu_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,20 +747,24 @@ def test_setup_options(self):
options=options,
)
works = (
jacobian == "none"
and (linear_solver == "SUNLinSol_Dense")
or jacobian == "dense"
and (linear_solver == "SUNLinSol_Dense")
or jacobian == "sparse"
and (
linear_solver != "SUNLinSol_Dense"
and linear_solver != "garbage"
(jacobian == "none" and (linear_solver == "SUNLinSol_Dense"))
or (
jacobian == "dense" and (linear_solver == "SUNLinSol_Dense")
)
or jacobian == "matrix-free"
and (
linear_solver != "SUNLinSol_KLU"
and linear_solver != "SUNLinSol_Dense"
and linear_solver != "garbage"
or (
jacobian == "sparse"
and (
linear_solver != "SUNLinSol_Dense"
and linear_solver != "garbage"
)
)
or (
jacobian == "matrix-free"
and (
linear_solver != "SUNLinSol_KLU"
and linear_solver != "SUNLinSol_Dense"
and linear_solver != "garbage"
)
)
)

Expand Down

0 comments on commit 403e1d3

Please sign in to comment.