From 89eb39b58be42ba24b7a699c8981ef49a6ed5555 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:35:56 +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/astral-sh/ruff-pre-commit: v0.14.4 → v0.15.18](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.4...v0.15.18) - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/25.11.0...26.5.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58dc915..af813f2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ repos: # python code formatting/linting - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.14.4" + rev: "v0.15.18" hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.11.0 + rev: 26.5.1 hooks: - id: black args: [--line-length, "100"] From 7a1ec4deccc0c8247e8443da0ef8e2bcd5b1b5c8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:36:19 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- metnet/layers/MBConv.py | 6 ++---- tests/test_merge_gaussian.py | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/metnet/layers/MBConv.py b/metnet/layers/MBConv.py index 32712d8..4259cea 100644 --- a/metnet/layers/MBConv.py +++ b/metnet/layers/MBConv.py @@ -65,10 +65,8 @@ def __init__( if self.downscale: # TODO: Check if downscaling is needed at all. May impact layer normalisation. - raise NotImplementedError( - "Downscaling in MBConv hasn't been implemented as it \ - isnt used in Metnet3" - ) + raise NotImplementedError("Downscaling in MBConv hasn't been implemented as it \ + isnt used in Metnet3") self.main_branch = nn.Sequential( self.pre_norm, # Pre Normalize over the last three dimensions (i.e. the channel and spatial dimensions) # noqa diff --git a/tests/test_merge_gaussian.py b/tests/test_merge_gaussian.py index d1401a5..cf59109 100644 --- a/tests/test_merge_gaussian.py +++ b/tests/test_merge_gaussian.py @@ -8,7 +8,6 @@ get_band_data, ) - # --------------------------------------------------------- # Helpers: create synthetic lat/lon grids # ---------------------------------------------------------