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/" 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)]