From 55aed125a04cc0b13a85941d7a417e9aa054cb01 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 21:04:03 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.20 → v0.16.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.20...v0.16.10) - [github.com/shellcheck-py/shellcheck-py: v0.11.0.1 → v0.11.0.1-1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.11.0.1...v0.11.0.1-1) - [github.com/rapidsai/pre-commit-hooks: v1.6.0 → v1.7.0](https://github.com/rapidsai/pre-commit-hooks/compare/v1.6.0...v1.7.0) - [github.com/zizmorcore/zizmor-pre-commit: v1.26.1 → v1.30.1](https://github.com/zizmorcore/zizmor-pre-commit/compare/v1.26.1...v1.30.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e14306e..7440d5f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,21 +17,21 @@ repos: - id: check-added-large-files - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.16.10 hooks: - id: ruff args: ["--fix"] - id: ruff-format - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.11.0.1 + rev: v0.11.0.1-1 hooks: - id: shellcheck args: ["--severity=warning"] - repo: https://github.com/rapidsai/pre-commit-hooks - rev: v1.6.0 + rev: v1.7.0 hooks: - id: verify-copyright - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.26.1 + rev: v1.30.1 hooks: - id: zizmor From f3182874d33a718e73cb19de512ece7886fe1daa Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 7 Oct 2026 15:05:28 -0500 Subject: [PATCH 2/3] fix pre-commit findings --- ci/check_conda_nightly_env.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/check_conda_nightly_env.py b/ci/check_conda_nightly_env.py index 21ed7070..298e6883 100644 --- a/ci/check_conda_nightly_env.py +++ b/ci/check_conda_nightly_env.py @@ -2,7 +2,7 @@ import json import re import sys -from datetime import datetime, timedelta +from datetime import datetime, timedelta, timezone OLD_PACKAGE_THRESHOLD_DAYS = 3 @@ -38,7 +38,9 @@ def get_package_date(package): if match: # Convert the date-time string to a datetime object datetime_string = match.group(1) - date_object = datetime.strptime(datetime_string, "%y%m%d%H%M%S") + date_object = datetime.strptime(datetime_string, "%y%m%d%H%M%S").replace( + tzinfo=timezone.utc + ) return date_object print( @@ -82,7 +84,7 @@ def check_env(json_path): } # If there are old packages, show an error - today = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0) + today = datetime.now(tz=timezone.utc).replace(hour=0, minute=0, second=0, microsecond=0) old_threshold = today - timedelta(days=OLD_PACKAGE_THRESHOLD_DAYS) old_packages = { package: date From dc44000d6f85183836e14130943332a938c82d4e Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 7 Oct 2026 15:06:48 -0500 Subject: [PATCH 3/3] format --- ci/check_conda_nightly_env.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/check_conda_nightly_env.py b/ci/check_conda_nightly_env.py index 298e6883..75875867 100644 --- a/ci/check_conda_nightly_env.py +++ b/ci/check_conda_nightly_env.py @@ -84,7 +84,9 @@ def check_env(json_path): } # If there are old packages, show an error - today = datetime.now(tz=timezone.utc).replace(hour=0, minute=0, second=0, microsecond=0) + today = datetime.now(tz=timezone.utc).replace( + hour=0, minute=0, second=0, microsecond=0 + ) old_threshold = today - timedelta(days=OLD_PACKAGE_THRESHOLD_DAYS) old_packages = { package: date