From 6d47789c89e8bae12157143df82e6a851b4ea817 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 20:40:05 +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/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/asottile/reorder-python-imports: v3.12.0 → v3.13.0](https://github.com/asottile/reorder-python-imports/compare/v3.12.0...v3.13.0) - [github.com/psf/black: 23.9.1 → 24.4.2](https://github.com/psf/black/compare/23.9.1...24.4.2) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.10.0) - [github.com/streetsidesoftware/cspell-cli: v7.3.1 → v8.9.0](https://github.com/streetsidesoftware/cspell-cli/compare/v7.3.1...v8.9.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 From 57ee7c3cf4a9164989bb91a4d68c0b038989eb21 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 20:40:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- python/goss/dolfinutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = []