From 235c557366edfb1e2ed011756efa0e831c0302f3 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:47:43 +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/pre-commit/pre-commit-hooks: v4.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 23.3.0 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/23.3.0...25.12.0) - [github.com/asottile/blacken-docs: 1.14.0 → 1.20.0](https://github.com/asottile/blacken-docs/compare/1.14.0...1.20.0) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.272 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.272...v0.14.10) - [github.com/mgedmin/check-manifest: 0.49 → 0.51](https://github.com/mgedmin/check-manifest/compare/0.49...0.51) - [github.com/asottile/setup-cfg-fmt: v2.3.0 → v3.2.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.3.0...v3.2.0) - [github.com/shellcheck-py/shellcheck-py: v0.9.0.5 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.9.0.5...v0.11.0.1) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.9-for-vscode → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.9-for-vscode...v4.0.0-alpha.8) --- .pre-commit-config.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 201a783..200cfa7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.4.0" + rev: "v6.0.0" hooks: - id: check-case-conflict - id: check-executables-have-shebangs @@ -23,31 +23,31 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - - repo: https://github.com/psf/black - rev: "23.3.0" + - repo: https://github.com/psf/black-pre-commit-mirror + rev: "25.12.0" hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: "1.14.0" + rev: "1.20.0" hooks: - id: blacken-docs additional_dependencies: [black==23.3.0] - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.272" + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.14.10" hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/mgedmin/check-manifest - rev: "0.49" + rev: "0.51" hooks: - id: check-manifest stages: [manual] - repo: https://github.com/asottile/setup-cfg-fmt - rev: "v2.3.0" + rev: "v3.2.0" hooks: - id: setup-cfg-fmt args: [--include-version-classifiers, --max-py-version=3.11] @@ -65,12 +65,12 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/shellcheck-py/shellcheck-py - rev: "v0.9.0.5" + rev: "v0.11.0.1" hooks: - id: shellcheck - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0-alpha.9-for-vscode" + rev: "v4.0.0-alpha.8" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] From 8e034e12933f00f785b08626d4cce0a5cae8a9cd 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:47:54 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- setup.cfg | 6 +----- src/g4edgetestdata/__init__.py | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/setup.cfg b/setup.cfg index 23e8721..9c8d8fd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,16 +15,12 @@ classifiers = Intended Audience :: Developers Intended Audience :: Information Technology Intended Audience :: Science/Research - License :: OSI Approved :: GNU General Public License v3 (GPLv3) Operating System :: MacOS Operating System :: POSIX Operating System :: Unix Programming Language :: Python Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Topic :: Scientific/Engineering @@ -37,7 +33,7 @@ classifiers = packages = find: install_requires = GitPython -python_requires = >=3.7 +python_requires = >=3.10 include_package_data = True package_dir = = src diff --git a/src/g4edgetestdata/__init__.py b/src/g4edgetestdata/__init__.py index 66dd3a8..4652d25 100644 --- a/src/g4edgetestdata/__init__.py +++ b/src/g4edgetestdata/__init__.py @@ -1,7 +1,8 @@ """Bare-bones Python package to access G4Edge test data files.""" + from __future__ import annotations from g4edgetestdata._version import version as __version__ from g4edgetestdata.core import G4EdgeTestData -__all__ = ["__version__", "G4EdgeTestData"] +__all__ = ["G4EdgeTestData", "__version__"]