From 366fc4689e79f4790d4f04e18c6a0e5ba09cec4a Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sun, 20 Oct 2024 19:33:05 +0000 Subject: [PATCH 1/2] Fix pre-commit regex --- .pre-commit-config.yaml | 3 +-- CHANGELOG.md | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cb0fcf3..4de59323 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,13 +43,12 @@ repos: rev: v0.6.9 hooks: - id: ruff - # Next line if for documenation cod snippets - exclude: '.*/[^_].*_\.py$' args: - --line-length=120 - --fix - --exit-non-zero-on-fix - --preview + - --exclude=docs/**/*_.py - repo: https://github.com/sphinx-contrib/sphinx-lint rev: v1.0.0 hooks: diff --git a/CHANGELOG.md b/CHANGELOG.md index 57078fd0..2c7c73c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ Keep it human-readable, your future self will thank you! - Change Changelog CI to run after successful publish - pytest for downstream-ci-hpc - Update CODEOWNERS +- Fix pre-commit regex ### Removed From c5dbb1646a130e7424302c8ea96e38be1d9b3e02 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:33:29 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/anemoi/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anemoi/models/__init__.py b/src/anemoi/models/__init__.py index 7a799a1a..eef2c1d4 100644 --- a/src/anemoi/models/__init__.py +++ b/src/anemoi/models/__init__.py @@ -6,4 +6,4 @@ # nor does it submit to any jurisdiction. -from ._version import __version__ +from ._version import __version__ as __version__