From dd9bba3d0c23e30b1b6f97ee5e718b4454a18a7c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:55:17 +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/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/psf/black: 23.10.1 → 24.1.1](https://github.com/psf/black/compare/23.10.1...24.1.1) - [github.com/pycqa/flake8: 6.1.0 → 7.0.0](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffd3b4ac..688b4221 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,18 +7,18 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black"] - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 24.1.1 hooks: - id: black exclude: vendor/ language_version: python3 - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 exclude: vendor/ From b10567382506ad4c2c75c93cd1e56a300adbefa3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:55:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cubed/core/ops.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cubed/core/ops.py b/cubed/core/ops.py index fcb0dba0..31f4267d 100644 --- a/cubed/core/ops.py +++ b/cubed/core/ops.py @@ -998,11 +998,11 @@ def unify_chunks(*args: "Array", **kwargs): arrays.append(a) else: chunks = tuple( - chunkss[j] - if a.shape[n] > 1 - else (a.shape[n],) - if not np.isnan(sum(chunkss[j])) - else None + ( + chunkss[j] + if a.shape[n] > 1 + else (a.shape[n],) if not np.isnan(sum(chunkss[j])) else None + ) for n, j in enumerate(i) ) if chunks != a.chunks and all(a.chunks):