Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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$
Expand Down
14 changes: 7 additions & 7 deletions docs/pages/guides/gha_pure.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down Expand Up @@ -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/*"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/*"

Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions docs/pages/guides/gha_wheels.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/*"

Expand Down Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions docs/pages/guides/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -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
```
Expand Down Expand Up @@ -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: []
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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/*"

Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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]
Expand Down Expand Up @@ -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
Expand Down
Loading