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$ 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.