From 3135f8af5ba9f7acc0f4dbad74a3a2821631293c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2026 06:04:44 +0000 Subject: [PATCH 1/3] Bump ruff from 0.16.10 to 0.17.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.16.10 to 0.17.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.16.10...0.17.1) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.17.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 580805f94f..534cb339f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,7 @@ docs = [ "mkdocs-gen-files", "mkdocs-literate-nav", ] -lint = ["pre-commit>=2.16.0", "ruff==0.16.10", "ty"] +lint = ["pre-commit>=2.16.0", "ruff==0.17.1", "ty"] all = ["process[test,docs,lint,examples,plotly]", "toml"] [project.scripts] @@ -115,7 +115,7 @@ deploy = "mkdocs gh-deploy" [tool.hatch.envs.lint] detached = true # Don't inherit from default (does not download project dependencies) -dependencies = ["pre-commit", "ruff==0.16.10", "ty"] +dependencies = ["pre-commit", "ruff==0.17.1", "ty"] [tool.hatch.envs.lint.scripts] fmt = ["pre-commit run --all-files --hook-stage manual {args:}"] From 89b05a434693f835abb1d78ab919bfcf3346487a Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Mon, 19 Oct 2026 08:20:12 +0100 Subject: [PATCH 2/3] Update ruff in pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 34bf1da3e0..a8a1e579cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-merge-conflict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.10 + rev: v0.17.1 hooks: - id: ruff-check args: [--fix] From fc0663b0d9278aa5e76b06d3b7a1ea8423868368 Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Mon, 19 Oct 2026 08:24:14 +0100 Subject: [PATCH 3/3] import datetime as dt --- process/core/init.py | 6 +++--- tracking/tracking_data.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/process/core/init.py b/process/core/init.py index 922a360825..4b5b537029 100644 --- a/process/core/init.py +++ b/process/core/init.py @@ -2,7 +2,7 @@ from __future__ import annotations -import datetime +import datetime as dt import getpass import logging import socket @@ -137,8 +137,8 @@ def run_summary(data: DataStructure): process_output.ocmmnt(outfile, f"Git Tag : {git_tag}") process_output.ocmmnt(outfile, f"Git Branch : {git_branch}") - date_string = datetime.datetime.now(datetime.UTC).strftime("%d/%m/%Y %Z") - time_string = datetime.datetime.now(datetime.UTC).strftime("%H:%M") + date_string = dt.datetime.now(dt.UTC).strftime("%d/%m/%Y %Z") + time_string = dt.datetime.now(dt.UTC).strftime("%H:%M") process_output.ocmmnt(outfile, f"Date : {date_string}") process_output.ocmmnt(outfile, f"Time : {time_string}") diff --git a/tracking/tracking_data.py b/tracking/tracking_data.py index 17572bce5b..7811468e2d 100644 --- a/tracking/tracking_data.py +++ b/tracking/tracking_data.py @@ -47,7 +47,7 @@ """ import argparse -import datetime +import datetime as dt import itertools import json import logging @@ -401,9 +401,9 @@ def _add_variables(self, json_file_data): # common format for the timestamp of the run data_time_str = f"{date_str.strip()} - {time_str.strip()}" - date_time = datetime.datetime.strptime( - data_time_str, "%d/%m/%Y - %H:%M" - ).replace(tzinfo=datetime.UTC) + date_time = dt.datetime.strptime(data_time_str, "%d/%m/%Y - %H:%M").replace( + tzinfo=dt.UTC + ) tracking_data = json_file_data.get( "tracking", []