diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b95d2649..66fe17d1 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.15.1" + rev: "v0.15.4" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -67,7 +67,7 @@ repos: args: [--prose-wrap=always] - repo: https://github.com/crate-ci/typos - rev: "v1.43.4" + rev: "v1.44.0" hooks: - id: typos exclude: ^Gemfile\.lock$ diff --git a/docs/pages/guides/gha_pure.md b/docs/pages/guides/gha_pure.md index 186a5428..e5318427 100644 --- a/docs/pages/guides/gha_pure.md +++ b/docs/pages/guides/gha_pure.md @@ -77,7 +77,7 @@ dist: - name: Build SDist and wheel run: pipx run build - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@v7 with: name: Packages path: dist/* @@ -148,13 +148,13 @@ publish: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: name: Packages path: dist - name: Generate artifact attestation for sdist and wheel - uses: actions/attest-build-provenance@v3 + uses: actions/attest-build-provenance@v4 with: subject-path: "dist/*" @@ -182,7 +182,7 @@ publish: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: name: Packages path: dist @@ -246,13 +246,13 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: name: Packages path: dist - name: Generate artifact attestation for sdist and wheel - uses: actions/attest-build-provenance@v3 + uses: actions/attest-build-provenance@v4 with: subject-path: "dist/*" @@ -294,7 +294,7 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: name: Packages path: dist diff --git a/docs/pages/guides/gha_wheels.md b/docs/pages/guides/gha_wheels.md index 23db4811..15661727 100644 --- a/docs/pages/guides/gha_wheels.md +++ b/docs/pages/guides/gha_wheels.md @@ -88,7 +88,7 @@ make_sdist: - name: Build SDist run: uv build --sdist - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@v7 with: name: cibw-sdist path: dist/*.tar.gz @@ -130,7 +130,7 @@ build_wheels: - uses: pypa/cibuildwheel@v3.3 - name: Upload wheels - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: cibw-wheels-${{ matrix.os }} path: wheelhouse/*.whl @@ -184,14 +184,14 @@ upload_all: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: pattern: cibw-* path: dist merge-multiple: true - name: Generate artifact attestations - uses: actions/attest-build-provenance@v3 + uses: actions/attest-build-provenance@v4 with: subject-path: "dist/*" @@ -219,7 +219,7 @@ upload_all: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: pattern: cibw-* path: dist diff --git a/docs/pages/guides/style.md b/docs/pages/guides/style.md index e196ce6c..bbe71d3c 100644 --- a/docs/pages/guides/style.md +++ b/docs/pages/guides/style.md @@ -140,7 +140,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.15.1" + rev: "v0.15.4" hooks: # id: ruff-check would go here if using both - id: ruff-format @@ -230,7 +230,7 @@ pre-commit hook. ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.1" + rev: "v0.15.4" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -551,7 +551,7 @@ pre-commit config will work: ```yaml - repo: https://github.com/PyCQA/isort - rev: "7.0.0" + rev: "8.0.1" hooks: - id: isort ``` @@ -786,7 +786,7 @@ integration. ```yaml - repo: https://github.com/crate-ci/typos - rev: "v1.43.4" + rev: "v1.44.0" hooks: - id: typos args: [] @@ -866,7 +866,7 @@ following pre-commit config: ```yaml - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v21.1.8" + rev: "v22.1.0" hooks: - id: clang-format types_or: [c++, c, cuda] @@ -943,7 +943,7 @@ schemas, and you can load them via URL. It work on JSON, YAML, and TOML. ```yaml - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.36.2" + rev: "0.37.0" hooks: - id: check-dependabot - id: check-github-workflows @@ -1014,7 +1014,7 @@ You also might like the following hook, which cleans Jupyter outputs: ```yaml - repo: https://github.com/kynan/nbstripout - rev: "0.9.0" + rev: "0.9.1" hooks: - id: nbstripout ``` 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 0e7a969d..bc0c2b45 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 %} @@ -43,13 +43,13 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: name: Packages path: dist - name: Generate artifact attestation for sdist and wheel - uses: actions/attest-build-provenance@v3 + uses: actions/attest-build-provenance@v4 with: subject-path: "dist/*" 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 365d6312..6b63d1da 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 %} @@ -30,7 +30,7 @@ jobs: - name: Build SDist run: pipx run build --sdist - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@v7 with: name: cibw-sdist path: dist/*.tar.gz @@ -59,7 +59,7 @@ jobs: - uses: pypa/cibuildwheel@v3.3 - name: Upload wheels - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: cibw-wheels-{% raw %}${{ matrix.os }}-${{ strategy.job-index }}{% endraw %} path: wheelhouse/*.whl @@ -75,14 +75,14 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@v8 with: pattern: cibw-* path: dist merge-multiple: true - name: Generate artifact attestations - uses: actions/attest-build-provenance@v3 + uses: actions/attest-build-provenance@v4 with: subject-path: "dist/*" diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml index 00b155c8..193c7145 100644 --- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: args: [--prose-wrap=always] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.1" + rev: "v0.15.4" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -52,7 +52,7 @@ repos: {%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %} - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v21.1.8" + rev: "v22.1.0" hooks: - id: clang-format types_or: [c++, c, cuda] @@ -105,7 +105,7 @@ repos: additional_dependencies: ["validate-pyproject-schema-store[all]"] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.36.2" + rev: "0.37.0" hooks: {%- if cookiecutter.__ci == "github" %} - id: check-dependabot