diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed234b8..63ddef1 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: 25.1.0 + rev: 25.12.0 hooks: - id: black-jupyter language_version: python3 args: [--line-length=100] - repo: https://github.com/adamchainz/blacken-docs - rev: "1.19.1" + rev: "1.20.0" hooks: - id: blacken-docs additional_dependencies: [black==23.*] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v5.0.0" + rev: "v6.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.11.12" + rev: "v0.14.10" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -71,7 +71,7 @@ repos: types_or: [python, rst, markdown] - repo: https://github.com/shellcheck-py/shellcheck-py - rev: "v0.10.0.1" + rev: "v0.11.0.1" hooks: - id: shellcheck @@ -81,7 +81,7 @@ repos: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.0 + rev: 0.36.0 hooks: - id: check-dependabot - id: check-github-workflows diff --git a/jetnet/datasets/dataset.py b/jetnet/datasets/dataset.py index 9931241..bb51d30 100644 --- a/jetnet/datasets/dataset.py +++ b/jetnet/datasets/dataset.py @@ -4,7 +4,8 @@ from __future__ import annotations -from typing import Any, Callable +from collections.abc import Callable +from typing import Any import torch from torch import Tensor diff --git a/jetnet/datasets/jetnet.py b/jetnet/datasets/jetnet.py index 78fecaa..6e52873 100644 --- a/jetnet/datasets/jetnet.py +++ b/jetnet/datasets/jetnet.py @@ -1,7 +1,7 @@ from __future__ import annotations +from collections.abc import Callable from copy import copy -from typing import Callable import numpy as np diff --git a/jetnet/datasets/qgjets.py b/jetnet/datasets/qgjets.py index b4536fe..c2ddff8 100644 --- a/jetnet/datasets/qgjets.py +++ b/jetnet/datasets/qgjets.py @@ -1,7 +1,7 @@ from __future__ import annotations +from collections.abc import Callable from copy import copy -from typing import Callable import numpy as np diff --git a/jetnet/datasets/toptagging.py b/jetnet/datasets/toptagging.py index 46f40f2..37a83d1 100644 --- a/jetnet/datasets/toptagging.py +++ b/jetnet/datasets/toptagging.py @@ -1,7 +1,7 @@ from __future__ import annotations +from collections.abc import Callable from copy import copy -from typing import Callable import numpy as np