Skip to content

Commit 65e5136

Browse files
authored
Merge pull request #89 from scientificcomputing/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 8548708 + 2dd2438 commit 65e5136

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
1717
# Ruff version.
18-
rev: 'v0.8.6'
18+
rev: 'v0.9.1'
1919
hooks:
2020
# Run the linter.
2121
- id: ruff

src/scifem/eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def evaluate_function(
3232
u.x.scatter_forward()
3333
comm = mesh.comm
3434
points = np.array(points, dtype=np.float64)
35-
assert (
36-
len(points.shape) == 2
37-
), f"Expected points to have shape (num_points, dim), got {points.shape}"
35+
assert len(points.shape) == 2, (
36+
f"Expected points to have shape (num_points, dim), got {points.shape}"
37+
)
3838
num_points = points.shape[0]
3939
extra_dim = 3 - mesh.geometry.dim
4040

src/scifem/point_source.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def __init__(
4646
self._function_space = V
4747
if V.dofmap.bs > 1 and dolfinx.__version__ == "0.8.0":
4848
raise NotImplementedError(
49-
"Block function spaces are not supported in dolfinx 0.8.0. "
50-
"Please upgrade dolfinx"
49+
"Block function spaces are not supported in dolfinx 0.8.0. Please upgrade dolfinx"
5150
)
5251
self._input_points = points
5352
self._magnitude = magnitude

0 commit comments

Comments
 (0)