Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#714)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

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

* Fix linting warning.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hameer Abbasi <2190658+hameerabbasi@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and hameerabbasi authored Jul 2, 2024
1 parent a73b20d commit 0e95f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
exclude: ".ipynb"

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
args: ["--fix"]
Expand Down
4 changes: 1 addition & 3 deletions sparse/numba_backend/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ def _is_scipy_sparse_obj(x):
"""
Tests if the supplied argument is a SciPy sparse object.
"""
if hasattr(x, "__module__") and x.__module__.startswith("scipy.sparse"):
return True
return False
return bool(hasattr(x, "__module__") and x.__module__.startswith("scipy.sparse"))


def _check_device(func):
Expand Down

0 comments on commit 0e95f8b

Please sign in to comment.