From 686f71456858ba4064fbfb667aac5ca81306dfff Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 17:36:33 +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.15.20 → v0.16.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.20...v0.16.1) - [github.com/codespell-project/codespell: v2.4.2 → v2.4.3](https://github.com/codespell-project/codespell/compare/v2.4.2...v2.4.3) - [github.com/rstcheck/rstcheck: v6.2.5 → v6.3.0](https://github.com/rstcheck/rstcheck/compare/v6.2.5...v6.3.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 38d7aeb8..2de00513 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: pycln args: [--config=pyproject.toml] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.16.1 hooks: - id: ruff-check args: @@ -67,7 +67,7 @@ repos: types: [python] exclude: ^(devtools|docs)/ - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell exclude: (-lock\.ya?ml|\benvironments/.*\.ya?ml|\.ipynb|\.svg|^THIRD_PARTY_SOFTWARE\.rst)$ @@ -103,7 +103,7 @@ repos: exclude_types: [jupyter] exclude: ^docs/(.*/)?images/ - repo: https://github.com/rstcheck/rstcheck - rev: v6.2.5 + rev: v6.3.0 hooks: - id: rstcheck exclude: ^THIRD_PARTY_SOFTWARE.rst$ From 4fdf18753ef95458fde1225106c007cddb5f0a34 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 17:39:07 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- simpeg_drivers/joint/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpeg_drivers/joint/driver.py b/simpeg_drivers/joint/driver.py index eac6b450..ccf1723e 100644 --- a/simpeg_drivers/joint/driver.py +++ b/simpeg_drivers/joint/driver.py @@ -365,7 +365,7 @@ def _reset_on_iteration(self, start_iteration: int): self._reset_directives(start_iteration) @staticmethod - def _validate_model_consistency(model: list[None | Any], model_type: str): + def _validate_model_consistency(model: list[Any | None], model_type: str): """ Check consistency of model values across drivers for a given model type. If some drivers have None and others have values, log a warning and ignore the model for the inversion.