diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9a15e3..cec7ae4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,20 +7,20 @@ exclude: ".*key" repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black-jupyter language_version: python3 args: [--line-length=100] - repo: https://github.com/adamchainz/blacken-docs - rev: "1.18.0" + rev: "1.19.1" hooks: - id: blacken-docs additional_dependencies: [black==23.*] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.6.0" + rev: "v5.0.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -50,7 +50,7 @@ repos: args: [--prose-wrap=preserve] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.3" + rev: "v0.8.1" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -76,12 +76,12 @@ repos: - id: shellcheck - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.19 + rev: v0.23 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.2 + rev: 0.30.0 hooks: - id: check-dependabot - id: check-github-workflows diff --git a/jetnet/utils/coord_transform.py b/jetnet/utils/coord_transform.py index 386949c..f892cf1 100644 --- a/jetnet/utils/coord_transform.py +++ b/jetnet/utils/coord_transform.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import Iterable +from collections.abc import Iterable import numpy as np import torch