diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 54daa817..2590888d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: args: - --strict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.1 hooks: - id: ruff - id: ruff-format diff --git a/glass/core/array.py b/glass/core/array.py index 4c89abdb..2f043cf3 100644 --- a/glass/core/array.py +++ b/glass/core/array.py @@ -1,4 +1,4 @@ -"""Module for array utilities.""" +"""Module for array utilities.""" # noqa: A005 from __future__ import annotations diff --git a/glass/fields.py b/glass/fields.py index 4cd2488f..5adce6ea 100644 --- a/glass/fields.py +++ b/glass/fields.py @@ -579,7 +579,7 @@ def effective_cls( shape1, shape2 = weights1.shape, weights2.shape for i, shape in enumerate((shape1, shape2)): if not shape or shape[0] != n: - msg = f"shape mismatch between fields and weights{i+1}" + msg = f"shape mismatch between fields and weights{i + 1}" raise ValueError(msg) # get the iterator over leading weight axes