From 65ac10a06d87da04d6ae7dcc4d5e6e65fb6ef906 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 03:53:39 +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/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d09386a..83d2e275 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: "23.3.0" + rev: "23.7.0" hooks: - id: black - id: black-jupyter From 7a5401d3e89b434260ba185efcfbc01e3d098dcc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 03:53:53 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/dolphin/masking.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dolphin/masking.py b/src/dolphin/masking.py index c5e9f7e8..2435ee69 100644 --- a/src/dolphin/masking.py +++ b/src/dolphin/masking.py @@ -109,10 +109,8 @@ def combine_mask_files( input_conventions = [MaskConvention.NUMPY] * len(mask_files) elif len(input_conventions) != len(mask_files): raise ValueError( - ( - f"input_conventions ({len(input_conventions)}) must have the same" - f" length as mask_files ({len(mask_files)})" - ), + f"input_conventions ({len(input_conventions)}) must have the same" + f" length as mask_files ({len(mask_files)})", ) # Uses the numpy convention (1 = invalid, 0 = valid) for combining logic