From 3db11ff47d03c13f904e341f8a9101b8b25e3ed6 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Thu, 16 Jan 2025 15:47:52 +0000 Subject: [PATCH] Reapply "pre-commit.ci: update pre-commit hooks (#477)" This reverts commit 2c38f3d74982d029e9bf75638c94537945a3817d. --- .pre-commit-config.yaml | 2 +- glass/core/array.py | 2 +- glass/fields.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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