Skip to content

Commit 17a4d5d

Browse files
committed
Merge branch 'main' into topk
* main: Bump codecov/codecov-action from 4.6.0 to 5.1.2 (#407) [pre-commit.ci] pre-commit autoupdate (#408) Back to Xarray release in CI (#414) Xfail some cubed tests (#413)
2 parents 820d46c + 0344a28 commit 17a4d5d

File tree

10 files changed

+17
-22
lines changed

10 files changed

+17
-22
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
--ignore flox/tests \
7878
--cov=./ --cov-report=xml
7979
- name: Upload code coverage to Codecov
80-
uses: codecov/codecov-action@v4.6.0
80+
uses: codecov/codecov-action@v5.1.2
8181
with:
8282
file: ./coverage.xml
8383
flags: unittests
@@ -132,7 +132,7 @@ jobs:
132132
python -m mypy --install-types --non-interactive --cache-dir=.mypy_cache/ --cobertura-xml-report mypy_report
133133
134134
- name: Upload mypy coverage to Codecov
135-
uses: codecov/codecov-action@v4.6.0
135+
uses: codecov/codecov-action@v5.1.2
136136
with:
137137
file: mypy_report/cobertura.xml
138138
flags: mypy

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
python -c "import xarray; xarray.show_versions()"
7777
pytest --durations=20 --durations-min=0.5 -n auto --cov=./ --cov-report=xml --hypothesis-profile ci
7878
- name: Upload code coverage to Codecov
79-
uses: codecov/codecov-action@v4.6.0
79+
uses: codecov/codecov-action@v5.1.2
8080
with:
8181
file: ./coverage.xml
8282
flags: unittests

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
66
# Ruff version.
7-
rev: "v0.6.9"
7+
rev: "v0.9.1"
88
hooks:
99
- id: ruff
1010
args: ["--fix", "--show-fixes"]
@@ -24,15 +24,15 @@ repos:
2424
- id: check-docstring-first
2525

2626
- repo: https://github.com/executablebooks/mdformat
27-
rev: 0.7.17
27+
rev: 0.7.21
2828
hooks:
2929
- id: mdformat
3030
additional_dependencies:
3131
- mdformat-black
3232
- mdformat-myst
3333

3434
- repo: https://github.com/kynan/nbstripout
35-
rev: 0.7.1
35+
rev: 0.8.1
3636
hooks:
3737
- id: nbstripout
3838
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]
@@ -45,12 +45,12 @@ repos:
4545
- tomli
4646

4747
- repo: https://github.com/abravalheri/validate-pyproject
48-
rev: v0.20.2
48+
rev: v0.23
4949
hooks:
5050
- id: validate-pyproject
5151

5252
- repo: https://github.com/rhysd/actionlint
53-
rev: v1.7.3
53+
rev: v1.7.6
5454
hooks:
5555
- id: actionlint
5656
files: ".github/workflows/"

ci/env-numpy1.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ dependencies:
2626
- numba
2727
- numbagg>=0.3
2828
- hypothesis
29-
- pip:
30-
- git+https://github.com/dcherian/xarray.git
29+
- xarray

ci/environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ dependencies:
2626
- numba
2727
- numbagg>=0.3
2828
- hypothesis
29-
- pip:
30-
- git+https://github.com/dcherian/xarray.git
29+
- xarray
30+
- zarr<3 # unpin when cubed is fixed.

ci/no-dask.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ dependencies:
2121
- toolz
2222
- numba
2323
- numbagg>=0.3
24-
- pip:
25-
- git+https://github.com/dcherian/xarray.git
24+
- xarray

ci/no-numba.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ dependencies:
2323
- numpy_groupies>=0.9.19
2424
- pooch
2525
- toolz
26-
- pip:
27-
- git+https://github.com/dcherian/xarray.git
26+
- xarray

flox/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ def _groupby_combine(a, axis, dummy_axis, dtype, keepdims):
19311931
out[field] = combine(a[field], axis=dummy_axis, keepdims=keepdims)
19321932
return out
19331933

1934-
def _groupby_aggregate(a):
1934+
def _groupby_aggregate(a, **kwargs):
19351935
# Convert cubed dict to one that _finalize_results works with
19361936
results = {"groups": expected_groups, "intermediates": a.values()}
19371937
out = _finalize_results(results, agg, axis, expected_groups, reindex)
@@ -2372,8 +2372,7 @@ def groupby_reduce(
23722372

23732373
if engine == "flox" and _is_arg_reduction(func):
23742374
raise NotImplementedError(
2375-
"argreductions not supported for engine='flox' yet."
2376-
"Try engine='numpy' or engine='numba' instead."
2375+
"argreductions not supported for engine='flox' yet. Try engine='numpy' or engine='numba' instead."
23772376
)
23782377

23792378
if engine == "numbagg" and dtype is not None:

tests/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def __init__(self, max_computes=0):
6666
def __call__(self, dsk, keys, **kwargs):
6767
self.total_computes += 1
6868
if self.total_computes > self.max_computes:
69-
raise RuntimeError(
70-
"Too many computes. Total: %d > max: %d." % (self.total_computes, self.max_computes)
71-
)
69+
raise RuntimeError(f"Too many computes. Total: {self.total_computes} > max: {self.max_computes}.")
7270
return dask.get(dsk, keys, **kwargs)
7371

7472

tests/test_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,7 @@ def test_group_by_datetime(engine, method):
12841284
assert_equal(expected, actual)
12851285

12861286

1287+
@pytest.mark.xfail
12871288
@requires_cubed
12881289
@pytest.mark.parametrize("method", ["blockwise", "map-reduce"])
12891290
def test_group_by_datetime_cubed(engine, method):

0 commit comments

Comments
 (0)