Skip to content

Commit

Permalink
chore: update pre-commit hooks (#373)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.285 → v0.0.286](astral-sh/ruff-pre-commit@v0.0.285...v0.0.286)
- [github.com/tox-dev/pyproject-fmt: 0.13.1 → 1.1.0](tox-dev/pyproject-fmt@0.13.1...1.1.0)

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Aug 29, 2023
1 parent 32f8866 commit a79ccfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.285"
rev: "v0.0.286"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.13.1"
rev: "1.1.0"
hooks:
- id: pyproject-fmt

Expand Down
2 changes: 1 addition & 1 deletion src/vector/backends/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def _is_type_safe(
| MomentumNumpy4D
| CoordinatesNumpy,
) -> bool:
for i in range(0, len(array.dtype)): # type: ignore[arg-type]
for i in range(len(array.dtype)): # type: ignore[arg-type]
if not issubclass(
array.dtype[i].type, (numpy.integer, numpy.floating)
) or issubclass(array.dtype[i].type, numpy.timedelta64):
Expand Down

0 comments on commit a79ccfb

Please sign in to comment.