diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e0110e4fd..ed74396b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.0.246' + rev: 'v0.0.260' hooks: - id: ruff args: ["--fix"] @@ -18,7 +18,7 @@ repos: - id: check-docstring-first - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.3.0 hooks: - id: black @@ -31,7 +31,7 @@ repos: - mdformat-myst - repo: https://github.com/nbQA-dev/nbQA - rev: 1.6.1 + rev: 1.7.0 hooks: - id: nbqa-black - id: nbqa-ruff @@ -44,13 +44,13 @@ repos: args: [--extra-keys=metadata.kernelspec metadata.language_info.version] - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.4 hooks: - id: codespell additional_dependencies: - tomli - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.12.1 + rev: v0.12.2 hooks: - id: validate-pyproject diff --git a/flox/core.py b/flox/core.py index d69ac51ce..8417f9897 100644 --- a/flox/core.py +++ b/flox/core.py @@ -354,7 +354,7 @@ def rechunk_for_cohorts( def rechunk_for_blockwise(array: DaskArray, axis: T_Axis, labels: np.ndarray) -> DaskArray: """ Rechunks array so that group boundaries line up with chunk boundaries, allowing - embarassingly parallel group reductions. + embarrassingly parallel group reductions. This only works when the groups are sequential (e.g. labels = ``[0,0,0,1,1,1,1,2,2]``). diff --git a/flox/xarray.py b/flox/xarray.py index da5cf0e35..6b7c174b0 100644 --- a/flox/xarray.py +++ b/flox/xarray.py @@ -534,7 +534,7 @@ def rechunk_for_cohorts( def rechunk_for_blockwise(obj: T_DataArray | T_Dataset, dim: str, labels: T_DataArray): """ Rechunks array so that group boundaries line up with chunk boundaries, allowing - embarassingly parallel group reductions. + embarrassingly parallel group reductions. This only works when the groups are sequential (e.g. labels = ``[0,0,0,1,1,1,1,2,2]``).