From 10eacb928112e521ab26f4b3c9f4629e0ab1c881 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 18:59:19 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.1.0) - [github.com/adamchainz/blacken-docs: 1.19.1 → 1.20.0](https://github.com/adamchainz/blacken-docs/compare/1.19.1...1.20.0) - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.15.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.15.4) - [github.com/shellcheck-py/shellcheck-py: v0.10.0.1 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.10.0.1...v0.11.0.1) - [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.24.1...v0.25) - [github.com/python-jsonschema/check-jsonschema: 0.33.0 → 0.37.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.0...0.37.0) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed234b8..ca477b9 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: 26.1.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.15.4" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -71,17 +71,17 @@ 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 - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.24.1 + rev: v0.25 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.0 + rev: 0.37.0 hooks: - id: check-dependabot - id: check-github-workflows From 32f608d49ba28527cae7cc4eb44cdb5594ed8f91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:05:40 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- jetnet/datasets/dataset.py | 3 ++- jetnet/datasets/jetnet.py | 2 +- jetnet/datasets/qgjets.py | 2 +- jetnet/datasets/toptagging.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) 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