From 13c00d591749c208cd58bd8ca986aefc0e70ff25 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 03:12:06 +0000 Subject: [PATCH 1/2] Bump the pre-commit-hooks group with 3 updates Bumps the pre-commit-hooks group with 3 updates: [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit), [https://github.com/codespell-project/codespell](https://github.com/codespell-project/codespell) and [https://github.com/rstcheck/rstcheck](https://github.com/rstcheck/rstcheck). Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.20 to 0.16.4 - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases) - [Commits](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.20...v0.16.4) Updates `https://github.com/codespell-project/codespell` from v2.4.2 to 2.4.3 - [Release notes](https://github.com/codespell-project/codespell/releases) - [Commits](https://github.com/codespell-project/codespell/compare/v2.4.2...v2.4.3) Updates `https://github.com/rstcheck/rstcheck` from v6.2.5 to 6.3.0 - [Changelog](https://github.com/rstcheck/rstcheck/blob/main/CHANGELOG.md) - [Commits](https://github.com/rstcheck/rstcheck/compare/v6.2.5...v6.3.0) --- updated-dependencies: - dependency-name: https://github.com/astral-sh/ruff-pre-commit dependency-version: 0.16.4 dependency-type: direct:production dependency-group: pre-commit-hooks - dependency-name: https://github.com/codespell-project/codespell dependency-version: 2.4.3 dependency-type: direct:production dependency-group: pre-commit-hooks - dependency-name: https://github.com/rstcheck/rstcheck dependency-version: 6.3.0 dependency-type: direct:production dependency-group: pre-commit-hooks ... Signed-off-by: dependabot[bot] --- .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 f77031a2..4ddb26be 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.4 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 46302de84e48141a06ea21db5ec506f47a694b84 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 03:12:23 +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 877e9c03..6cf15cfe 100644 --- a/simpeg_drivers/joint/driver.py +++ b/simpeg_drivers/joint/driver.py @@ -366,7 +366,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.