From 90333be0e2c4bc00e8c4f5e02cb91d8e955bb589 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:27:39 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.11...v0.13.3) - [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.1...v1.18.2) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e9ffc0..aac4daa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,14 +12,14 @@ repos: - id: validate-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.11 + rev: v0.13.3 hooks: - id: ruff-check args: [--fix, --unsafe-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 + rev: v1.18.2 hooks: - id: mypy files: "^src/" From 518319659471cde5cd87290cf35dd80d863ee15f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:32:12 +0000 Subject: [PATCH 2/2] style(pre-commit.ci): auto fixes [...] --- src/useq/_grid.py | 2 +- src/useq/_plate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/useq/_grid.py b/src/useq/_grid.py index 2ad9ebe..c86a8c8 100644 --- a/src/useq/_grid.py +++ b/src/useq/_grid.py @@ -636,7 +636,7 @@ def plot( rect = None # Get polygon bounds for plotting - min_x, min_y, max_x, max_y = self.poly.bounds + _min_x, _min_y, _max_x, _max_y = self.poly.bounds return plot_points( self, diff --git a/src/useq/_plate.py b/src/useq/_plate.py index ef99796..c378948 100644 --- a/src/useq/_plate.py +++ b/src/useq/_plate.py @@ -452,7 +452,7 @@ def __repr__(self) -> str: def _expression_repr(expr: tuple[Sequence[int], Sequence[int]]) -> _Repr: """Try to represent an index expression as slice objects if possible.""" e0, e1 = expr - ptrn1, repeats = _find_pattern(e1) + ptrn1, _repeats = _find_pattern(e1) if ptrn1 is None: return _Repr(str(expr)) ptrn0 = e0[:: len(ptrn1)]