Skip to content

Commit

Permalink
pre-commit.ci: update pre-commit hooks (#477)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Patrick J. Roddy <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and paddyroddy authored Jan 14, 2025
1 parent b8fc91a commit d22271d
Show file tree
Hide file tree
Showing 3 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 @@ -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
Expand Down
2 changes: 1 addition & 1 deletion glass/core/array.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Module for array utilities."""
"""Module for array utilities.""" # noqa: A005

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion glass/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d22271d

Please sign in to comment.