Skip to content

Commit

Permalink
Merge pull request #535 from yt-project/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
neutrinoceros authored Dec 3, 2024
2 parents c5c502d + c79c6d4 commit 5289948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
additional_dependencies: [black==24.10.0]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.8.1
hooks:
- id: ruff-format
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions unyt/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1985,8 +1985,8 @@ def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
mul = 1
else:
raise RuntimeError(
"Support for the %s ufunc with %i inputs has not been "
"added to unyt_array." % (str(ufunc), len(inputs))
f"Support for the {ufunc} ufunc with {len(inputs)} "
"inputs has not been added to unyt_array."
)
if unit is None:
out_arr = np.array(out_arr, copy=_COPY_IF_NEEDED)
Expand Down

0 comments on commit 5289948

Please sign in to comment.