From e9680d1fd888821031c3875a1aeb97f75ea6da50 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Nov 2026 22:04:48 +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/tox-dev/pyproject-fmt: 59e7b26529dc6f15c43063064b8b06ded60d0910 → 50e0f3aee9dc5747a5f173f79a7417403c18dda6](https://github.com/tox-dev/pyproject-fmt/compare/59e7b26529dc6f15c43063064b8b06ded60d0910...50e0f3aee9dc5747a5f173f79a7417403c18dda6) - [github.com/abravalheri/validate-pyproject: 17e12779811926f000bdfa1795f9e3735dd71ac3 → 82d21874c3242e4dc27bb47641c996902ef64eef](https://github.com/abravalheri/validate-pyproject/compare/17e12779811926f000bdfa1795f9e3735dd71ac3...82d21874c3242e4dc27bb47641c996902ef64eef) - [github.com/astral-sh/ruff-pre-commit: a56c0b927e6465d37cae3e97d35d4d18ab2b96cd → 25bcf95026b96e2dd3c0aec3090c3d6ef6ca2e6c](https://github.com/astral-sh/ruff-pre-commit/compare/a56c0b927e6465d37cae3e97d35d4d18ab2b96cd...25bcf95026b96e2dd3c0aec3090c3d6ef6ca2e6c) - [github.com/adamchainz/blacken-docs: fda77690955e9b63c6687d8806bafd56a526e45f → dda8db18cfc68df532abf33b185ecd12d5b7b326](https://github.com/adamchainz/blacken-docs/compare/fda77690955e9b63c6687d8806bafd56a526e45f...dda8db18cfc68df532abf33b185ecd12d5b7b326) --- .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 fa441c10..563f7db6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,15 +24,15 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 59e7b26529dc6f15c43063064b8b06ded60d0910 # frozen: v2.29.4 + rev: 50e0f3aee9dc5747a5f173f79a7417403c18dda6 # frozen: v2.30.3 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: 17e12779811926f000bdfa1795f9e3735dd71ac3 # frozen: 0.26 + rev: 82d21874c3242e4dc27bb47641c996902ef64eef # frozen: v0.27 hooks: - id: validate-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: a56c0b927e6465d37cae3e97d35d4d18ab2b96cd # frozen: v0.16.9 + rev: 25bcf95026b96e2dd3c0aec3090c3d6ef6ca2e6c # frozen: v0.17.3 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] @@ -43,7 +43,7 @@ repos: - id: sphinx-lint types: [rst] - repo: https://github.com/adamchainz/blacken-docs - rev: fda77690955e9b63c6687d8806bafd56a526e45f # frozen: 1.20.0 + rev: dda8db18cfc68df532abf33b185ecd12d5b7b326 # frozen: 1.20.0 hooks: - id: blacken-docs args: [--line-length=79] From addcbd43919e8405c834d7815432a93d507afa14 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Nov 2026 22:05:53 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/clean-prep/libs-methods/dask-pipeline.ipynb | 4 ++-- docs/clean-prep/libs-methods/voluptuous.ipynb | 6 +++--- .../serialisation-formats/toml/example.ipynb | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/clean-prep/libs-methods/dask-pipeline.ipynb b/docs/clean-prep/libs-methods/dask-pipeline.ipynb index 7a3621d3..08c07358 100644 --- a/docs/clean-prep/libs-methods/dask-pipeline.ipynb +++ b/docs/clean-prep/libs-methods/dask-pipeline.ipynb @@ -243,8 +243,8 @@ " data = resp.json().get(\"response\")[0]\n", " td = datetime.datetime.fromtimestamp(\n", " data.get(\"risetime\"),\n", - " tz=datetime.timezone.utc,\n", - " ) - datetime.datetime.now(tz=datetime.timezone.utc)\n", + " tz=datetime.UTC,\n", + " ) - datetime.datetime.now(tz=datetime.UTC)\n", " m, s = divmod(int(td.total_seconds()), 60)\n", " h, m = divmod(m, 60)\n", " logger.info(\n", diff --git a/docs/clean-prep/libs-methods/voluptuous.ipynb b/docs/clean-prep/libs-methods/voluptuous.ipynb index d7cdc293..e1f6dadb 100644 --- a/docs/clean-prep/libs-methods/voluptuous.ipynb +++ b/docs/clean-prep/libs-methods/voluptuous.ipynb @@ -503,7 +503,7 @@ "source": [ "def valid_date(fmt=\"%Y-%m-%d %H:%M:%S\"):\n", " return lambda v: datetime.datetime.strptime(v, fmt).replace(\n", - " tzinfo=datetime.timezone.utc\n", + " tzinfo=datetime.UTC\n", " )" ] }, @@ -607,8 +607,8 @@ " def validation_func(v):\n", " try:\n", " assert datetime.datetime.strptime(v, fmt).replace(\n", - " tzinfo=datetime.timezone.utc\n", - " ) <= datetime.datetime.now(tz=datetime.timezone.utc)\n", + " tzinfo=datetime.UTC\n", + " ) <= datetime.datetime.now(tz=datetime.UTC)\n", " except AssertionError:\n", " msg = f\"The date is in the future! {v}\"\n", " raise Invalid(msg) from AssertionError\n", diff --git a/docs/data-processing/serialisation-formats/toml/example.ipynb b/docs/data-processing/serialisation-formats/toml/example.ipynb index db7db3db..1b507541 100644 --- a/docs/data-processing/serialisation-formats/toml/example.ipynb +++ b/docs/data-processing/serialisation-formats/toml/example.ipynb @@ -80,10 +80,10 @@ } ], "source": [ - "from pathlib import Path\n", - "\n", "import tomllib\n", "\n", + "from pathlib import Path\n", + "\n", "\n", "with Path.open(\"pyproject.toml\", \"rb\") as f:\n", " data = tomllib.load(f)\n",