diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58dc915..4f037de 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.12" hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.11.0 + rev: 26.3.1 hooks: - id: black args: [--line-length, "100"] 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 # ---------------------------------------------------------