Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
2 changes: 1 addition & 1 deletion src/useq/_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/useq/_plate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
Loading