From 0afe3baa8f3459b5e919d83cc076fb6807644834 Mon Sep 17 00:00:00 2001 From: "scientific-python-pr-tokenbot[bot]" <181030687+scientific-python-pr-tokenbot[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2026 06:14:29 +0000 Subject: [PATCH 1/2] [create-pull-request] automated change --- .pre-commit-config.yaml | 8 ++++---- docs/guides/gha_basic.md | 2 +- docs/guides/gha_wheels.md | 6 +++--- docs/guides/style.md | 20 +++++++++---------- docs/guides/tasks.md | 2 +- .../.github/workflows/ci.yml | 4 ++-- ...ter.__type=='compiled' %}cd.yml{% endif %} | 4 ++-- .../.pre-commit-config.yaml | 6 +++--- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f85bd287..039846ef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.10" + rev: "v0.17.0" hooks: - id: ruff-check args: ["--fix"] @@ -53,19 +53,19 @@ repos: - types-PyYAML - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.9.9" + rev: "v3.9.10" hooks: - id: prettier types_or: [yaml, html, css, scss, javascript, json] - repo: https://github.com/rvben/rumdl-pre-commit - rev: "v0.2.78" + rev: "v0.2.79" hooks: - id: rumdl args: [--no-exclude] # Disable all exclude patterns - repo: https://github.com/crate-ci/typos - rev: "v1.50.3" + rev: "v1.51.1" hooks: - id: typos exclude: ^Gemfile\.lock$ diff --git a/docs/guides/gha_basic.md b/docs/guides/gha_basic.md index be2c6826..260e5377 100644 --- a/docs/guides/gha_basic.md +++ b/docs/guides/gha_basic.md @@ -122,7 +122,7 @@ tests: allow-prereleases: true - name: Download uv - uses: astral-sh/setup-uv@v10.2.0 + uses: astral-sh/setup-uv@v10.3.0 - name: Test package run: uv run pytest diff --git a/docs/guides/gha_wheels.md b/docs/guides/gha_wheels.md index b25117e1..20c28898 100644 --- a/docs/guides/gha_wheels.md +++ b/docs/guides/gha_wheels.md @@ -73,7 +73,7 @@ make_sdist: with: fetch-depth: 0 # Optional, use if you use setuptools_scm submodules: true # Optional, use if you have submodules - - uses: astral-sh/setup-uv@v10.2.0 + - uses: astral-sh/setup-uv@v10.3.0 - name: Build SDist run: uv build --sdist @@ -113,9 +113,9 @@ build_wheels: fetch-depth: 0 submodules: true - - uses: astral-sh/setup-uv@v10.2.0 + - uses: astral-sh/setup-uv@v10.3.0 - - uses: pypa/cibuildwheel@v4.2 + - uses: pypa/cibuildwheel@v4.3 - name: Upload wheels uses: actions/upload-artifact@v7 diff --git a/docs/guides/style.md b/docs/guides/style.md index 3da2b595..6c59322e 100644 --- a/docs/guides/style.md +++ b/docs/guides/style.md @@ -148,7 +148,7 @@ Here is the snippet to add the formatter to your `.pre-commit-config.yml` ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.10" + rev: "v0.17.0" hooks: # id: ruff-check would go here if using both - id: ruff-format @@ -176,7 +176,7 @@ Here is the snippet to add Black to your `.pre-commit-config.yml`: ```yaml - repo: https://github.com/psf/black-pre-commit-mirror - rev: "26.10.0" + rev: "26.10.1" hooks: - id: black ``` @@ -216,7 +216,7 @@ your code and your docs. Add `markdown` to the `ruff-format` hook's `types_or`: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.10" + rev: "v0.17.0" hooks: - id: ruff-format types_or: [python, pyi, jupyter, markdown, pyproject] @@ -256,7 +256,7 @@ pre-commit hook. ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.10" + rev: "v0.17.0" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -591,7 +591,7 @@ when clearly better (please always use them, they are faster) if you set ```yaml - repo: https://github.com/asottile/pyupgrade - rev: "v3.21.2" + rev: "v3.22.0" hooks: - id: pyupgrade args: ["--py39-plus"] @@ -672,7 +672,7 @@ with `additional_dependencies`, and pass extra flags via `args`. :sync: ty ```yaml - repo: https://github.com/astral-sh/ty-pre-commit - rev: "v0.0.84" + rev: "v0.0.86" hooks: - id: ty ``` @@ -857,7 +857,7 @@ important parts (like Python classifiers) are in sync. This tool, ```yaml - repo: https://github.com/asottile/setup-cfg-fmt - rev: "v3.2.0" + rev: "v3.3.0" hooks: - id: setup-cfg-fmt args: [--include-version-classifiers, --max-py-version=3.12] @@ -907,7 +907,7 @@ integration. ```yaml - repo: https://github.com/crate-ci/typos - rev: "v1.50.3" + rev: "v1.51.1" hooks: - id: typos args: [] @@ -988,7 +988,7 @@ following pre-commit config: ```yaml - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v23.1.2" + rev: "v23.1.3" hooks: - id: clang-format types_or: [c++, c, cuda] @@ -1017,7 +1017,7 @@ number of different file types. An example of usage: ```yaml - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.9.9" + rev: "v3.9.10" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] diff --git a/docs/guides/tasks.md b/docs/guides/tasks.md index c354381d..71c0e27f 100644 --- a/docs/guides/tasks.md +++ b/docs/guides/tasks.md @@ -309,7 +309,7 @@ You can install `uv` with `pipx`, `brew`, etc. If you want to use uv in GitHub Actions, one way is to use this: ```yaml -- uses: astral-sh/setup-uv@v10.2.0 +- uses: astral-sh/setup-uv@v10.3.0 ``` Check your jobs with `uv`; most things do not need to change. The main diff --git a/{{cookiecutter.project_name}}/.github/workflows/ci.yml b/{{cookiecutter.project_name}}/.github/workflows/ci.yml index 2fa22ac4..5832483b 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: with: python-version: "3.x" - - uses: astral-sh/setup-uv@v10.2.0 + - uses: astral-sh/setup-uv@v10.3.0 - uses: j178/prek-action@v2 @@ -75,7 +75,7 @@ jobs: python-version: {% raw %}${{ matrix.python-version }}{% endraw %} allow-prereleases: true - - uses: astral-sh/setup-uv@v10.2.0 + - uses: astral-sh/setup-uv@v10.3.0 {%- if cookiecutter.backend == "mesonpy" %} diff --git a/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} b/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} index 64733e02..a759ce92 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} +++ b/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} @@ -62,12 +62,12 @@ jobs: persist-credentials: false fetch-depth: 0 - - uses: astral-sh/setup-uv@v10.2.0 + - uses: astral-sh/setup-uv@v10.3.0 with: # Disable caching to avoid poisoning published wheels enable-cache: false - - uses: pypa/cibuildwheel@v4.2 + - uses: pypa/cibuildwheel@v4.3 - name: Upload wheels uses: actions/upload-artifact@v7 diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml index e5728c31..9ec4cafe 100644 --- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml @@ -30,14 +30,14 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.9.9" + rev: "v3.9.10" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] args: [--prose-wrap=always] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.10" + rev: "v0.17.0" hooks: - id: ruff-check args: ["--fix"] @@ -47,7 +47,7 @@ repos: {%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %} - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v23.1.2" + rev: "v23.1.3" hooks: - id: clang-format types_or: [c++, c, cuda] From b44486488bb8077cc4111cd59efa7f546bdc6fa9 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 12 Oct 2026 11:53:26 +0530 Subject: [PATCH 2/2] style: alias datetime as dt for ruff ICN001 Assisted-by: ClaudeCode:claude-opus-5-5 --- helpers/extensions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/extensions.py b/helpers/extensions.py index 212f549f..d91b4343 100644 --- a/helpers/extensions.py +++ b/helpers/extensions.py @@ -1,4 +1,4 @@ -import datetime +import datetime as dt from collections.abc import Mapping from copier_templates_extensions import ContextHook @@ -39,7 +39,7 @@ class CookiecutterContext(SmartDict): @CookiecutterContext.register def __year(_): - return str(datetime.datetime.now(tz=datetime.UTC).year) + return str(dt.datetime.now(tz=dt.UTC).year) @CookiecutterContext.register