From 5522f5be1f15c12ba1432c5fdef4679fb79a1cec Mon Sep 17 00:00:00 2001 From: "scientific-python-pr-tokenbot[bot]" <181030687+scientific-python-pr-tokenbot[bot]@users.noreply.github.com> Date: Thu, 6 Nov 2025 22:14:23 +0000 Subject: [PATCH 1/2] [create-pull-request] automated change --- docs/pages/guides/gha_basic.md | 6 +++--- docs/pages/guides/gha_pure.md | 8 ++++---- docs/pages/guides/gha_wheels.md | 4 ++-- docs/pages/guides/style.md | 2 +- {{cookiecutter.project_name}}/.github/workflows/ci.yml | 4 ++-- ...if cookiecutter.__type!='compiled' %}cd.yml{% endif %} | 2 +- ...if cookiecutter.__type=='compiled' %}cd.yml{% endif %} | 4 ++-- {{cookiecutter.project_name}}/.pre-commit-config.yaml | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/pages/guides/gha_basic.md b/docs/pages/guides/gha_basic.md index fc64b224..8872b82a 100644 --- a/docs/pages/guides/gha_basic.md +++ b/docs/pages/guides/gha_basic.md @@ -66,7 +66,7 @@ lint: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta - uses: actions/setup-python@v6 with: python-version: "3.x" @@ -104,7 +104,7 @@ tests: - "3.14" name: Check Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 # Only needed if using setuptools-scm @@ -516,7 +516,7 @@ jobs: # more here if you have more situations to detect steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta - name: Changed test-related files if: github.event_name == 'pull_request' diff --git a/docs/pages/guides/gha_pure.md b/docs/pages/guides/gha_pure.md index c8546786..0ab8dda6 100644 --- a/docs/pages/guides/gha_pure.md +++ b/docs/pages/guides/gha_pure.md @@ -70,7 +70,7 @@ the name "CI/CD", you can just combine the two `on` dicts. dist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 @@ -124,7 +124,7 @@ later in the upload action for the release job, as well). > > ```yaml > steps: -> - uses: actions/checkout@v5 +> - uses: actions/checkout@v6-beta > - uses: hynek/build-and-inspect-python-package@v2 > ``` > @@ -229,7 +229,7 @@ jobs: dist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 @@ -282,7 +282,7 @@ jobs: dist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 diff --git a/docs/pages/guides/gha_wheels.md b/docs/pages/guides/gha_wheels.md index 261c4ad5..58502fc2 100644 --- a/docs/pages/guides/gha_wheels.md +++ b/docs/pages/guides/gha_wheels.md @@ -79,7 +79,7 @@ make_sdist: name: Make SDist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 # Optional, use if you use setuptools_scm submodules: true # Optional, use if you have submodules @@ -120,7 +120,7 @@ build_wheels: - macos-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 submodules: true diff --git a/docs/pages/guides/style.md b/docs/pages/guides/style.md index 3c9c0941..56cf4440 100644 --- a/docs/pages/guides/style.md +++ b/docs/pages/guides/style.md @@ -756,7 +756,7 @@ following pre-commit config: ```yaml - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v21.1.2" + rev: "v21.1.5" hooks: - id: clang-format types_or: [c++, c, cuda] diff --git a/{{cookiecutter.project_name}}/.github/workflows/ci.yml b/{{cookiecutter.project_name}}/.github/workflows/ci.yml index 9c8d9510..12e07d5d 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: name: Format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 - uses: actions/setup-python@v6 @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 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 ac68d7de..251adce4 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 %} @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 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 42ffad42..7d3121c6 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 %} @@ -23,7 +23,7 @@ jobs: name: Make SDist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 @@ -50,7 +50,7 @@ jobs: - macos-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6-beta with: fetch-depth: 0 diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml index 55dcea22..c0908e1b 100644 --- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml @@ -51,7 +51,7 @@ repos: {%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %} - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v21.1.2" + rev: "v21.1.5" hooks: - id: clang-format types_or: [c++, c, cuda] From eff8d53dd1eead621854bd69413032149e9e67d2 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 6 Nov 2025 17:39:02 -0500 Subject: [PATCH 2/2] fix: don't pick up beta tags for GHA Signed-off-by: Henry Schreiner --- .pre-commit-config.yaml | 2 +- docs/pages/guides/gha_basic.md | 6 +++--- docs/pages/guides/gha_pure.md | 8 ++++---- docs/pages/guides/gha_wheels.md | 4 ++-- docs/pages/guides/style.md | 4 ++-- noxfile.py | 1 + {{cookiecutter.project_name}}/.github/workflows/ci.yml | 4 ++-- ...if cookiecutter.__type!='compiled' %}cd.yml{% endif %} | 2 +- ...if cookiecutter.__type=='compiled' %}cd.yml{% endif %} | 4 ++-- {{cookiecutter.project_name}}/.pre-commit-config.yaml | 2 +- 10 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db8ff20b..a54bacc1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: additional_dependencies: [black==24.*] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.3" + rev: "v0.14.4" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] diff --git a/docs/pages/guides/gha_basic.md b/docs/pages/guides/gha_basic.md index 8872b82a..fc64b224 100644 --- a/docs/pages/guides/gha_basic.md +++ b/docs/pages/guides/gha_basic.md @@ -66,7 +66,7 @@ lint: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 - uses: actions/setup-python@v6 with: python-version: "3.x" @@ -104,7 +104,7 @@ tests: - "3.14" name: Check Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 # Only needed if using setuptools-scm @@ -516,7 +516,7 @@ jobs: # more here if you have more situations to detect steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 - name: Changed test-related files if: github.event_name == 'pull_request' diff --git a/docs/pages/guides/gha_pure.md b/docs/pages/guides/gha_pure.md index 0ab8dda6..c8546786 100644 --- a/docs/pages/guides/gha_pure.md +++ b/docs/pages/guides/gha_pure.md @@ -70,7 +70,7 @@ the name "CI/CD", you can just combine the two `on` dicts. dist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 @@ -124,7 +124,7 @@ later in the upload action for the release job, as well). > > ```yaml > steps: -> - uses: actions/checkout@v6-beta +> - uses: actions/checkout@v5 > - uses: hynek/build-and-inspect-python-package@v2 > ``` > @@ -229,7 +229,7 @@ jobs: dist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 @@ -282,7 +282,7 @@ jobs: dist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 diff --git a/docs/pages/guides/gha_wheels.md b/docs/pages/guides/gha_wheels.md index 58502fc2..261c4ad5 100644 --- a/docs/pages/guides/gha_wheels.md +++ b/docs/pages/guides/gha_wheels.md @@ -79,7 +79,7 @@ make_sdist: name: Make SDist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 # Optional, use if you use setuptools_scm submodules: true # Optional, use if you have submodules @@ -120,7 +120,7 @@ build_wheels: - macos-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 submodules: true diff --git a/docs/pages/guides/style.md b/docs/pages/guides/style.md index 56cf4440..eafe59b3 100644 --- a/docs/pages/guides/style.md +++ b/docs/pages/guides/style.md @@ -111,7 +111,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.14.3" + rev: "v0.14.4" hooks: # id: ruff-check would go here if using both - id: ruff-format @@ -201,7 +201,7 @@ pre-commit hook. ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.3" + rev: "v0.14.4" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] diff --git a/noxfile.py b/noxfile.py index f0d0104f..24200d5a 100755 --- a/noxfile.py +++ b/noxfile.py @@ -481,6 +481,7 @@ def get_latest_version_tag(repo: str, old_version: str) -> dict[str, Any] | None for x in results if x["name"].count(".") == old_version.count(".") and x["name"].startswith("v") == old_version.startswith("v") + and "beta" not in x["name"] ] if tags: return tags[0] # type: ignore[no-any-return] diff --git a/{{cookiecutter.project_name}}/.github/workflows/ci.yml b/{{cookiecutter.project_name}}/.github/workflows/ci.yml index 12e07d5d..9c8d9510 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: name: Format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 - uses: actions/setup-python@v6 @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 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 251adce4..ac68d7de 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 %} @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 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 7d3121c6..42ffad42 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 %} @@ -23,7 +23,7 @@ jobs: name: Make SDist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 @@ -50,7 +50,7 @@ jobs: - macos-latest steps: - - uses: actions/checkout@v6-beta + - uses: actions/checkout@v5 with: fetch-depth: 0 diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml index c0908e1b..02431e11 100644 --- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: args: [--prose-wrap=always] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.3" + rev: "v0.14.4" hooks: - id: ruff-check args: ["--fix", "--show-fixes"]