From fc1be05f2876e42e9955b3bf92fcf960c7f0d586 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:27:19 +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.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.7.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.7.2) - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.13.0) --- .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 1a0d6e6..62cffb1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -14,7 +14,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: 'v0.5.6' + rev: 'v0.7.2' hooks: # Run the linter. - id: ruff @@ -23,6 +23,6 @@ repos: - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.1 + rev: v1.13.0 hooks: - id: mypy From 27b8d74628e874c3b8b01be97f25892d79c74d4e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:27:37 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_calculus.py | 3 ++- tests/test_cli.py | 3 +-- tests/test_io.py | 3 ++- tests/test_ldrb.py | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/test_calculus.py b/tests/test_calculus.py index 55bb893..c420e3c 100644 --- a/tests/test_calculus.py +++ b/tests/test_calculus.py @@ -1,7 +1,8 @@ -import ldrb import numpy as np import pytest +import ldrb + tol = 1e-12 diff --git a/tests/test_cli.py b/tests/test_cli.py index a5f8823..d8e9333 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,8 +1,7 @@ +import cardiac_geometries import ldrb import ldrb.cli -import cardiac_geometries - def test_cli(tmp_path): geodir = tmp_path / "lv" diff --git a/tests/test_io.py b/tests/test_io.py index 68d59b5..701c74d 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -1,10 +1,11 @@ from mpi4py import MPI import dolfinx -import ldrb import numpy as np import pytest +import ldrb + @pytest.mark.parametrize("space1", ["P_1", "P_2", "dP_0", "dP_1"]) @pytest.mark.parametrize("space2", ["P_1", "P_2", "dP_0", "dP_1"]) diff --git a/tests/test_ldrb.py b/tests/test_ldrb.py index 8584122..cbc172d 100644 --- a/tests/test_ldrb.py +++ b/tests/test_ldrb.py @@ -1,11 +1,12 @@ from mpi4py import MPI import dolfinx -import ldrb import numpy as np import pytest from dolfinx.geometry import bb_tree, compute_colliding_cells, compute_collisions_points +import ldrb + tol = 1e-12