diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ba5b7b0..39ed121 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-yaml - id: end-of-file-fixer @@ -9,13 +9,13 @@ repos: - id: debug-statements - repo: https://github.com/asottile/reorder-python-imports - rev: v3.12.0 + rev: v3.13.0 hooks: - id: reorder-python-imports exclude: ^sandbox/|^demo/ - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.4.2 hooks: - id: black exclude: ^sandbox/ @@ -33,12 +33,12 @@ repos: exclude: ^sandbox/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.10.0 hooks: - id: mypy exclude: ^(sandbox/|setup.py|demo) - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v7.3.1 + rev: v8.9.0 hooks: - id: cspell diff --git a/python/goss/dolfinutils.py b/python/goss/dolfinutils.py index ad8a39e..ab2643d 100644 --- a/python/goss/dolfinutils.py +++ b/python/goss/dolfinutils.py @@ -585,9 +585,9 @@ def __init__( # noqa: C901 ] = (ode.field_params[param].vector().get_local()) else: - self._param_values[label][ - local_id :: ode.num_field_parameters - ] = ode.get_parameter(param) + self._param_values[label][local_id :: ode.num_field_parameters] = ( + ode.get_parameter(param) + ) # Reset any changed field parameters ode.changed_field_parameters = []