From 6dc031498f62c0d8853ada40188567f6d542335c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:07:02 -0400 Subject: [PATCH] ci(pre-commit.ci): autoupdate (#191) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci(pre-commit.ci): autoupdate updates: - [github.com/abravalheri/validate-pyproject: v0.19 → v0.20.2](https://github.com/abravalheri/validate-pyproject/compare/v0.19...v0.20.2) - [github.com/astral-sh/ruff-pre-commit: v0.6.7 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.7...v0.6.9) * ignores --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Talley Lambert --- .pre-commit-config.yaml | 6 +++--- src/useq/_grid.py | 2 +- src/useq/_iter_sequence.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57953f22..68e7f872 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,19 +7,19 @@ default_install_hook_types: [pre-commit, commit-msg] repos: - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.19 + rev: v0.22 hooks: - id: validate-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.7 + rev: v0.7.1 hooks: - id: ruff args: [--fix, --unsafe-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy files: "^src/" diff --git a/src/useq/_grid.py b/src/useq/_grid.py index fdb2dc09..4addc35e 100644 --- a/src/useq/_grid.py +++ b/src/useq/_grid.py @@ -146,7 +146,7 @@ def iter_grid_positions( pos_cls = RelativePosition if self.is_relative else AbsolutePosition for idx, (r, c) in enumerate(order.generate_indices(rows, cols)): - yield pos_cls( + yield pos_cls( # type: ignore [misc] x=x0 + c * dx, y=y0 - r * dy, row=r, diff --git a/src/useq/_iter_sequence.py b/src/useq/_iter_sequence.py index b51f3cb5..bd7e0a8f 100644 --- a/src/useq/_iter_sequence.py +++ b/src/useq/_iter_sequence.py @@ -283,7 +283,7 @@ def _parse_axes( index = {ax: _ev[ax][0] for ax in AXES if ax in _ev} # this needs to be tuple(...) to work for mypyc axes = tuple(_ev[ax][1] if ax in _ev else None for ax in AXES) - return (index, *axes) + return (index, *axes) # type: ignore [return-value] def _should_skip(