Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #89

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.8.6'
rev: 'v0.9.1'
hooks:
# Run the linter.
- id: ruff
Expand Down
6 changes: 3 additions & 3 deletions src/scifem/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def evaluate_function(
u.x.scatter_forward()
comm = mesh.comm
points = np.array(points, dtype=np.float64)
assert (
len(points.shape) == 2
), f"Expected points to have shape (num_points, dim), got {points.shape}"
assert len(points.shape) == 2, (
f"Expected points to have shape (num_points, dim), got {points.shape}"
)
num_points = points.shape[0]
extra_dim = 3 - mesh.geometry.dim

Expand Down
3 changes: 1 addition & 2 deletions src/scifem/point_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def __init__(
self._function_space = V
if V.dofmap.bs > 1 and dolfinx.__version__ == "0.8.0":
raise NotImplementedError(
"Block function spaces are not supported in dolfinx 0.8.0. "
"Please upgrade dolfinx"
"Block function spaces are not supported in dolfinx 0.8.0. Please upgrade dolfinx"
)
self._input_points = points
self._magnitude = magnitude
Expand Down
Loading