Skip to content

Commit

Permalink
ci(pre-commit.ci): autoupdate (pymmcore-plus#191)
Browse files Browse the repository at this point in the history
* ci(pre-commit.ci): autoupdate

updates:
- [github.com/abravalheri/validate-pyproject: v0.19 → v0.20.2](abravalheri/validate-pyproject@v0.19...v0.20.2)
- [github.com/astral-sh/ruff-pre-commit: v0.6.7 → v0.6.9](astral-sh/ruff-pre-commit@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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and tlambert03 authored Nov 1, 2024
1 parent a706d80 commit 6dc0314
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
2 changes: 1 addition & 1 deletion src/useq/_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/useq/_iter_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6dc0314

Please sign in to comment.