Skip to content

Commit

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

updates:
- [github.com/psf/black: 23.12.1 → 24.2.0](psf/black@23.12.1...24.2.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 13, 2024
1 parent 04e3a16 commit b6c31fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.2.0
hooks:
- id: black
14 changes: 7 additions & 7 deletions xarrayutils/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ def test_xr_linregress(chunks, dim, variant, dtype, nans, parameter, ni):

else:
# add nans at random positions
a.data[
np.unravel_index(np.random.randint(0, 5 * 7 * 3, 10), a.shape)
] = np.nan
b.data[
np.unravel_index(np.random.randint(0, 5 * 7 * 3, 10), b.shape)
] = np.nan
a.data[np.unravel_index(np.random.randint(0, 5 * 7 * 3, 10), a.shape)] = (
np.nan
)
b.data[np.unravel_index(np.random.randint(0, 5 * 7 * 3, 10), b.shape)] = (
np.nan
)

if chunks is not None:
if variant == 0:
Expand Down Expand Up @@ -580,7 +580,7 @@ def test_aggregate_regular_blocks(dataarray_2d_example, blocks, expected_result)
# non int interval
[("blah", 2), ("blubb", 3)],
# no matching labels
[(2, 2), ("j", 2)]
[(2, 2), ("j", 2)],
# non str dim label
],
)
Expand Down

0 comments on commit b6c31fa

Please sign in to comment.