Skip to content

Commit 284edc5

Browse files
authoredJan 14, 2025··
Merge pull request #162 from dask-contrib/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 45fcd40 + a8b92c0 commit 284edc5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
 

‎.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.8.6
3+
rev: v0.9.1
44
hooks:
55
- id: ruff
66
- id: ruff-format

‎tests/test_boost.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,18 @@ def test_obj_5D_strcat_intcat_rectangular(use_weights):
128128
storage=storage,
129129
)
130130
for i in range(25):
131-
h.fill(f"testcat{i+1}", i + 1, *(x.T), weight=weights)
131+
h.fill(f"testcat{i + 1}", i + 1, *(x.T), weight=weights)
132132
h = h.compute()
133133

134134
control = bh.Histogram(*h.axes, storage=h.storage_type())
135135
if use_weights:
136136
for i in range(25):
137137
control.fill(
138-
f"testcat{i+1}", i + 1, *(x.compute().T), weight=weights.compute()
138+
f"testcat{i + 1}", i + 1, *(x.compute().T), weight=weights.compute()
139139
)
140140
else:
141141
for i in range(25):
142-
control.fill(f"testcat{i+1}", i + 1, *(x.compute().T))
142+
control.fill(f"testcat{i + 1}", i + 1, *(x.compute().T))
143143

144144
assert np.allclose(h.counts(), control.counts())
145145
if use_weights:
@@ -183,19 +183,21 @@ def test_obj_5D_strcat_intcat_rectangular_dak(use_weights):
183183
assert h.__dask_optimize__ == dak.lib.optimize.all_optimizations
184184

185185
for i in range(25):
186-
h.fill(f"testcat{i+1}", i + 1, x, y, z, weight=weights[i] if weights else None)
186+
h.fill(
187+
f"testcat{i + 1}", i + 1, x, y, z, weight=weights[i] if weights else None
188+
)
187189
h = h.compute()
188190

189191
control = bh.Histogram(*h.axes, storage=h.storage_type())
190192
x_c, y_c, z_c = x.compute(), y.compute(), z.compute()
191193
if use_weights:
192194
for i in range(25):
193195
control.fill(
194-
f"testcat{i+1}", i + 1, x_c, y_c, z_c, weight=weights[i].compute()
196+
f"testcat{i + 1}", i + 1, x_c, y_c, z_c, weight=weights[i].compute()
195197
)
196198
else:
197199
for i in range(25):
198-
control.fill(f"testcat{i+1}", i + 1, x_c, y_c, z_c)
200+
control.fill(f"testcat{i + 1}", i + 1, x_c, y_c, z_c)
199201

200202
assert np.allclose(h.counts(), control.counts())
201203
if use_weights:

0 commit comments

Comments
 (0)
Please sign in to comment.