From 68643cbb7c1b7db0e6757fbcc3874fc576289e0a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 01:44:49 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.246 → v0.0.260](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.246...v0.0.260) - [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0) - [github.com/nbQA-dev/nbQA: 1.6.1 → 1.7.0](https://github.com/nbQA-dev/nbQA/compare/1.6.1...1.7.0) - [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4) - [github.com/abravalheri/validate-pyproject: v0.12.1 → v0.12.2](https://github.com/abravalheri/validate-pyproject/compare/v0.12.1...v0.12.2) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 From 3bd2646bc57fcdfd33a00c75ff6d752c569545ea Mon Sep 17 00:00:00 2001 From: dcherian Date: Fri, 21 Apr 2023 08:49:51 -0600 Subject: [PATCH 2/2] Fix typos --- flox/core.py | 2 +- flox/xarray.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]``).