diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6e16f47..ba81cc32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/unyt/array.py b/unyt/array.py index 330f51c4..b3982dbf 100644 --- a/unyt/array.py +++ b/unyt/array.py @@ -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)