From 53d80d163d1d72e06d97b8fba2391a7d6b096d0d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 18:42:37 +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 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...25.12.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.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.14.10) - [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/python-jsonschema/check-jsonschema: 0.33.0 → 0.36.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.0...0.36.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 From 757758e5748dc5dcb03f17e9e80523f07a6d0003 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 18:42:48 +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