Skip to content

Commit 4ee347b

Browse files
[pre-commit.ci] pre-commit autoupdate (#718)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.2](astral-sh/ruff-pre-commit@v0.5.1...v0.5.2) * Manual fixes. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hameer Abbasi <[email protected]>
1 parent 5688d41 commit 4ee347b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
exclude: ".ipynb"
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.5.1
21+
rev: v0.5.2
2222
hooks:
2323
- id: ruff
2424
args: ["--fix"]

sparse/numba_backend/_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def save_npz(filename, matrix, compressed=True):
5555
"fill_value": matrix.fill_value,
5656
}
5757

58-
if type(matrix) == COO:
58+
if type(matrix) is COO:
5959
nodes["coords"] = matrix.coords
60-
elif type(matrix) == GCXS:
60+
elif type(matrix) is GCXS:
6161
nodes["indices"] = matrix.indices
6262
nodes["indptr"] = matrix.indptr
6363
nodes["compressed_axes"] = matrix.compressed_axes

sparse/numba_backend/tests/test_compressed_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_transpose(random_sparse, copy):
109109
assert random_sparse.shape == t.shape[::-1]
110110

111111
assert_eq(random_sparse, tt)
112-
assert type(random_sparse) == type(tt)
112+
assert type(random_sparse) is type(tt)
113113

114114
assert_eq(random_sparse.transpose(axes=(0, 1)), random_sparse)
115115
assert_eq(random_sparse.transpose(axes=(1, 0)), t)

0 commit comments

Comments
 (0)