From a79ccfb9574421870029506895dcb9c2162ac59d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 23:25:09 +0530 Subject: [PATCH] chore: update pre-commit hooks (#373) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.0.285 → v0.0.286](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.285...v0.0.286) - [github.com/tox-dev/pyproject-fmt: 0.13.1 → 1.1.0](https://github.com/tox-dev/pyproject-fmt/compare/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> --- .pre-commit-config.yaml | 4 ++-- src/vector/backends/numpy.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db636c6f..dcb83660 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/src/vector/backends/numpy.py b/src/vector/backends/numpy.py index 6385abcc..20602284 100644 --- a/src/vector/backends/numpy.py +++ b/src/vector/backends/numpy.py @@ -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):