From 22793824a16c5db1a5ede7b3ab25df599a73bbb7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 21:52:35 +0000 Subject: [PATCH 1/2] [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.5 → v0.17.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.5...v0.17.2) - [github.com/python-jsonschema/check-jsonschema: 0.37.0 → 0.39.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.37.0...0.39.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cfc7ee0..86dd094 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.5 + rev: v0.17.2 hooks: - id: ruff - id: ruff-format - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.0 + rev: 0.39.0 hooks: - id: check-github-workflows From 0f374e2b24767cc09cab4b62a4de8668e6ea55ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 21:52:45 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- modelitool/combitabconvert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modelitool/combitabconvert.py b/modelitool/combitabconvert.py index b2feb3c..3113257 100644 --- a/modelitool/combitabconvert.py +++ b/modelitool/combitabconvert.py @@ -5,13 +5,13 @@ def seconds_to_datetime(index_second, ref_year): - since = dt.datetime(ref_year, 1, 1, tzinfo=dt.timezone.utc) + since = dt.datetime(ref_year, 1, 1, tzinfo=dt.UTC) diff_seconds = index_second + since.timestamp() return pd.DatetimeIndex(pd.to_datetime(diff_seconds, unit="s")) def datetime_to_seconds(index_datetime): - time_start = dt.datetime(index_datetime[0].year, 1, 1, tzinfo=dt.timezone.utc) + time_start = dt.datetime(index_datetime[0].year, 1, 1, tzinfo=dt.UTC) new_index = index_datetime.to_frame().diff().squeeze() new_index.iloc[0] = dt.timedelta( seconds=index_datetime[0].timestamp() - time_start.timestamp() @@ -25,7 +25,7 @@ def get_dymo_time_index(df): Return a list containing seconds since the beginning of the Year Only use UTC datetime index """ - time_start = dt.datetime(df.index[0].year, 1, 1, tzinfo=dt.timezone.utc) + time_start = dt.datetime(df.index[0].year, 1, 1, tzinfo=dt.UTC) new_index = df.index.to_frame().diff().squeeze() new_index.iloc[0] = dt.timedelta( seconds=df.index[0].timestamp() - time_start.timestamp()