From 990ff60376dac125ccb0c61bd278b71fe5c5b41e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 17:42:01 +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.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.4...v0.15.13) - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 26.5.0](https://github.com/psf/black-pre-commit-mirror/compare/25.11.0...26.5.0) --- .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..7117fc1 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.13" hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.11.0 + rev: 26.5.0 hooks: - id: black args: [--line-length, "100"] From 2c9feedc68f4636bda0640b792776ca21a6a059e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 17:42:22 +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 # ---------------------------------------------------------