Skip to content

Commit

Permalink
Merge pull request #22 from finsberg/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
finsberg authored Nov 5, 2024
2 parents 81a0a7d + 27b8d74 commit dfb783f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
3 changes: 2 additions & 1 deletion tests/test_calculus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import ldrb
import numpy as np
import pytest

import ldrb

tol = 1e-12


Expand Down
3 changes: 1 addition & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import cardiac_geometries
import ldrb
import ldrb.cli

import cardiac_geometries


def test_cli(tmp_path):
geodir = tmp_path / "lv"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
@@ -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", "Q_2"])
@pytest.mark.parametrize("space2", ["P_1", "P_2", "dP_0", "dP_1", "Q_2"])
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ldrb.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down

0 comments on commit dfb783f

Please sign in to comment.