Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)$
Expand Down Expand Up @@ -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$
Expand Down
2 changes: 1 addition & 1 deletion simpeg_drivers/joint/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading