Skip to content

Commit a0fcb39

Browse files
chore(deps): bump versions (#522)
* [create-pull-request] automated change * style: pre-commit fixes --------- Co-authored-by: scientific-python-pr-tokenbot[bot] <181030687+scientific-python-pr-tokenbot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 771d789 commit a0fcb39

22 files changed

+79
-77
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
additional_dependencies: [black==24.*]
3030

3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.7.4"
32+
rev: "v0.8.2"
3333
hooks:
3434
- id: ruff
3535
args: ["--fix", "--show-fixes"]
@@ -59,7 +59,7 @@ repos:
5959
- types-PyYAML
6060

6161
- repo: https://github.com/rbubley/mirrors-prettier
62-
rev: "v3.3.3"
62+
rev: "v3.4.2"
6363
hooks:
6464
- id: prettier
6565
types_or: [yaml, markdown, html, css, scss, javascript, json]

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ During generation you can select from the following backends for your package:
3939
1. [hatch][]: This uses hatchling, a modern builder with nice file inclusion,
4040
extendable via plugins, and good error messages. **(Recommended for pure
4141
Python projects)**
42-
2. [flit][]: A modern, lightweight [PEP 621][] build system for pure Python projects.
43-
Replaces setuptools, no MANIFEST.in, setup.py, or setup.cfg. Low learning curve.
44-
Easy to bootstrap into new distributions. Difficult to get the right files included,
45-
little dynamic metadata support.
42+
2. [flit][]: A modern, lightweight [PEP 621][] build system for pure Python
43+
projects. Replaces setuptools, no MANIFEST.in, setup.py, or setup.cfg. Low
44+
learning curve. Easy to bootstrap into new distributions. Difficult to get
45+
the right files included, little dynamic metadata support.
4646
3. [pdm][]: A modern, less opinionated all-in-one solution to pure Python
4747
projects supporting standards. Replaces setuptools, venv/pipenv, pip, wheel,
4848
and twine. Supports [PEP 621][].
@@ -57,8 +57,8 @@ During generation you can select from the following backends for your package:
5757
7. [scikit-build][]: A scikit-build (CMake) project also using pybind11, using
5858
scikit-build-core. **(Recommended for C++ projects)**
5959
8. [meson-python][]: A Meson project also using pybind11. (No VCS versioning)
60-
9. [maturin][]: A [PEP 621][] builder for Rust binary extensions. (No VCS versioning)
61-
**(Recommended for Rust projects)**
60+
9. [maturin][]: A [PEP 621][] builder for Rust binary extensions. (No VCS
61+
versioning) **(Recommended for Rust projects)**
6262

6363
Currently, the best choice is probably hatch for pure Python projects, and
6464
scikit-build (such as the scikit-build-core + pybind11 choice) for binary
@@ -218,8 +218,8 @@ A lot of the guide, cookiecutter, and repo-review started out as part of
218218

219219
<!-- sp-repo-review -->
220220

221-
`sp-repo-review` provides checks based on the [Scientific-Python
222-
Development Guide][] at [scientific-python/cookie][] for [repo-review][].
221+
`sp-repo-review` provides checks based on the [Scientific-Python Development
222+
Guide][] at [scientific-python/cookie][] for [repo-review][].
223223

224224
This tool can check the style of a repository. Use like this:
225225

docs/pages/guides/coverage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ enough for a simple testing suite, can be written as follows:
9191

9292
```yaml
9393
- name: Upload coverage report
94-
uses: codecov/codecov-action@v5.0.2
94+
uses: codecov/codecov-action@v5.1.1
9595
with:
9696
token: ${{ secrets.CODECOV_TOKEN }}
9797
```

docs/pages/guides/gha_pure.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ custom_title: GitHub Actions for pure Python wheels
1111

1212
# GitHub Actions: Pure Python wheels
1313

14-
We will cover binary wheels [on the next page][], but if you do not have a compiled
15-
extension, this is called a universal (pure Python) package, and the procedure to
16-
make a "built" wheel is simple. At the end of this page, there is a recipe that can
17-
often be used exactly for pure Python wheels (if the previous recommendations were
18-
followed).
14+
We will cover binary wheels [on the next page][], but if you do not have a
15+
compiled extension, this is called a universal (pure Python) package, and the
16+
procedure to make a "built" wheel is simple. At the end of this page, there is a
17+
recipe that can often be used exactly for pure Python wheels (if the previous
18+
recommendations were followed).
1919

2020
{: .note }
2121

@@ -89,8 +89,8 @@ dist:
8989
{% endraw %}
9090

9191
We use [PyPA-Build](https://pypa-build.readthedocs.io/en/latest/), a new build
92-
tool designed to make building wheels and SDists easy. It run a [PEP 517][] backend
93-
and can get [PEP 518][] requirements even for making SDists.
92+
tool designed to make building wheels and SDists easy. It run a [PEP 517][]
93+
backend and can get [PEP 518][] requirements even for making SDists.
9494

9595
By default this will make an SDist and a wheel from the package in the current
9696
directory, and they will be placed in `./dist`. You can only build SDist (`-s`),
@@ -154,7 +154,7 @@ publish:
154154
path: dist
155155
156156
- name: Generate artifact attestation for sdist and wheel
157-
uses: actions/attest-build-provenance@v1.4.4
157+
uses: actions/attest-build-provenance@v2.0.1
158158
with:
159159
subject-path: "dist/*"
160160
@@ -166,8 +166,8 @@ publish:
166166
When you make a GitHub release in the web UI, we publish to PyPI. You'll just
167167
need to tell PyPI which org, repo, workflow, and set the `pypi` environment to
168168
allow pushes from GitHub. If it's the first time you've published a package, go
169-
to the [PyPI trusted publisher docs] for instructions on preparing PyPI to accept
170-
your initial package publish.
169+
to the [PyPI trusted publisher docs] for instructions on preparing PyPI to
170+
accept your initial package publish.
171171

172172
We are also generating artifact attestations, which can allow users to verify
173173
that the artifacts were built on your actions.
@@ -252,7 +252,7 @@ jobs:
252252
path: dist
253253
254254
- name: Generate artifact attestation for sdist and wheel
255-
uses: actions/attest-build-provenance@v1.4.4
255+
uses: actions/attest-build-provenance@v2.0.1
256256
with:
257257
subject-path: "dist/*"
258258

docs/pages/guides/gha_wheels.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ build_wheels:
114114
fetch-depth: 0
115115
submodules: true
116116
117-
- uses: pypa/cibuildwheel@v2.21
117+
- uses: pypa/cibuildwheel@v2.22
118118
119119
- name: Upload wheels
120120
uses: actions/upload-artifact@v4
@@ -178,7 +178,7 @@ upload_all:
178178
merge-multiple: true
179179
180180
- name: Generate artifact attestations
181-
uses: actions/attest-build-provenance@v1.4.4
181+
uses: actions/attest-build-provenance@v2.0.1
182182
with:
183183
subject-path: "dist/*"
184184
@@ -190,8 +190,8 @@ upload_all:
190190
When you make a GitHub release in the web UI, we publish to PyPI. You'll just
191191
need to tell PyPI which org, repo, workflow, and set the `pypi` environment to
192192
allow pushes from GitHub. If it's the first time you've published a package, go
193-
to the [PyPI trusted publisher docs] for instructions on preparing PyPI to accept
194-
your initial package publish.
193+
to the [PyPI trusted publisher docs] for instructions on preparing PyPI to
194+
accept your initial package publish.
195195

196196
We are also generating artifact attestations, which can allow users to verify
197197
that the artifacts were built on your actions.

docs/pages/guides/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ for your `CONTRIBUTING.md`, and at least glance through other sections.
1818
Following that, there are recommendations for [style][], intended to promote
1919
good practices and to ensure continuity across the packages. There is a
2020
[dedicated page for static type checking with MyPy][mypy]. There is then a guide
21-
on [simple packaging][], [compiled packaging][], or even [classic packaging][], which
22-
should help in ensuring a consistent developer and user experience when working with
23-
distribution.
21+
on [simple packaging][], [compiled packaging][], or even [classic packaging][],
22+
which should help in ensuring a consistent developer and user experience when
23+
working with distribution.
2424

2525
A section on CI follows, with a [general setup guide][gha_basic], and then two
2626
choices for using CI to distribute your package, on for [pure Python][gha_pure],
@@ -43,8 +43,8 @@ on setting up [docs][], as well.
4343
> Checking an existing project
4444
>
4545
> We provide [sp-repo-review][], a set of [repo-review][] checks for comparing
46-
> your repository with the guidelines, runnable [right in the guide][] via WebAssembly!
47-
> All checks point to a linked badge in the guide.
46+
> your repository with the guidelines, runnable [right in the guide][] via
47+
> WebAssembly! All checks point to a linked badge in the guide.
4848
4949
<!-- prettier-ignore-start -->
5050

docs/pages/guides/mypy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ to a code base. By default:
7777
You can add configuration to `pyproject.toml` (and a little bit to the files
7878
themselves), or you can go all the way and pass `--strict`, which will turn on
7979
everything. Try to turn on as much as possible, and increase it until you can
80-
run with full `strict` checking. See the [style page][] for configuration suggestions.
80+
run with full `strict` checking. See the [style page][] for configuration
81+
suggestions.
8182

8283
[style page]: {% link pages/guides/style.md %}
8384

docs/pages/guides/packaging_classic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ like [Hatch][] are drastically simpler - most of this page is unneeded for those
2222
systems. Even setuptools supports modern config now, though setup.py is still
2323
also required for compiled packages to be supported.
2424

25-
Also see the [Python packaging guide][], especially the [Python
26-
packaging tutorial][].
25+
Also see the [Python packaging guide][], especially the [Python packaging
26+
tutorial][].
2727

2828
{: .note }
2929

docs/pages/guides/packaging_compiled.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ The most exciting developments have been new native build backends:
2626

2727
{: .note }
2828

29-
You should be familiar with [packing a pure
30-
Python project]({% link pages/guides/packaging_compiled.md %}) - the metadata
29+
You should be familiar with [packing a pure Python
30+
project]({% link pages/guides/packaging_compiled.md %}) - the metadata
3131
configuration is the same.
3232

3333
There are also classic setuptools plugins:

docs/pages/guides/packaging_simple.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ parent: Topical Guides
1313
Python packages can now use a modern build system instead of the classic but
1414
verbose setuptools and `setup.py`. The one you select doesn't really matter that
1515
much; they all use a [standard configuration language][metadata] introduced in
16-
[PEP 621][]. The PyPA's Flit is a great option. [scikit-build-core][] and [meson-python][]
17-
are being developed to support this sort of configuration, enabling binary extension
18-
packages to benefit too. These [PEP 621][] tools currently include [Hatch][],
19-
[PDM][], [Flit][], and [Setuptools][]. [Poetry][] will eventually gain support
20-
in 2.0.
16+
[PEP 621][]. The PyPA's Flit is a great option. [scikit-build-core][] and
17+
[meson-python][] are being developed to support this sort of configuration,
18+
enabling binary extension packages to benefit too. These [PEP 621][] tools
19+
currently include [Hatch][], [PDM][], [Flit][], and [Setuptools][]. [Poetry][]
20+
will eventually gain support in 2.0.
2121

2222
{: .note-title }
2323

docs/pages/guides/style.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Here is the snippet to add the formatter to your `.pre-commit-config.yml`
111111

112112
```yaml
113113
- repo: https://github.com/astral-sh/ruff-pre-commit
114-
rev: "v0.7.4"
114+
rev: "v0.8.2"
115115
hooks:
116116
# id: ruff would go here if using both
117117
- id: ruff-format
@@ -201,7 +201,7 @@ pre-commit hook.
201201
202202
```yaml
203203
- repo: https://github.com/astral-sh/ruff-pre-commit
204-
rev: "v0.7.4"
204+
rev: "v0.8.2"
205205
hooks:
206206
- id: ruff
207207
args: ["--fix", "--show-fixes"]
@@ -745,7 +745,7 @@ following pre-commit config:
745745

746746
```yaml
747747
- repo: https://github.com/pre-commit/mirrors-clang-format
748-
rev: "v19.1.3"
748+
rev: "v19.1.4"
749749
hooks:
750750
- id: clang-format
751751
types_or: [c++, c, cuda]
@@ -774,7 +774,7 @@ number of different file types. An example of usage:
774774

775775
```yaml
776776
- repo: https://github.com/rbubley/mirrors-prettier
777-
rev: "v3.3.3"
777+
rev: "v3.4.2"
778778
hooks:
779779
- id: prettier
780780
types_or: [yaml, markdown, html, css, scss, javascript, json]
@@ -822,7 +822,7 @@ schemas, and you can load them via URL. It work on JSON, YAML, and TOML.
822822

823823
```yaml
824824
- repo: https://github.com/python-jsonschema/check-jsonschema
825-
rev: "0.29.4"
825+
rev: "0.30.0"
826826
hooks:
827827
- id: check-dependabot
828828
- id: check-github-workflows

docs/pages/guides/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ You can install `uv` with `pipx`, `brew`, etc. If you want to use uv in GitHub
320320
Actions, one way is to use this:
321321

322322
```yaml
323-
- uses: astral-sh/setup-uv@v3
323+
- uses: astral-sh/setup-uv@v4
324324
```
325325

326326
Check your jobs with `uv`; most things do not need to change. The main

docs/pages/index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ maintainable, reusable, and shareable form? Start at the
1717
[tutorial]({% link pages/tutorials/index.md %}).
1818

1919
**Learn recommended tools and best practices.** [Topical guides]({% link
20-
pages/guides/index.md %}) provide task-based instruction on topics that scientists
21-
and research software engineers may encounter as their projects evolve and grow.
22-
This covers modern packaging ([simple][] or [compiled][]), [style checking][],
23-
[testing][], [documentation][], [static typing][], [CI][], and much more!
20+
pages/guides/index.md %}) provide task-based instruction on topics that
21+
scientists and research software engineers may encounter as their projects
22+
evolve and grow. This covers modern packaging ([simple][] or [compiled][]),
23+
[style checking][], [testing][], [documentation][], [static typing][], [CI][],
24+
and much more!
2425

2526
{: .highlight-title }
2627

@@ -35,8 +36,8 @@ This covers modern packaging ([simple][] or [compiled][]), [style checking][],
3536
> Checking an existing project
3637
>
3738
> We provide [sp-repo-review][], a set of [repo-review][] checks for comparing
38-
> your repository with the guidelines, runnable [right in the guide][] via WebAssembly!
39-
> All checks point to a linked badge in the guide.
39+
> your repository with the guidelines, runnable [right in the guide][] via
40+
> WebAssembly! All checks point to a linked badge in the guide.
4041
4142
**Learn to write better research code.** A high-level document on
4243
[principles]({% link pages/principles/index.md %}) provides advice based on the

docs/pages/principles/design.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ test, maintain when data formats change, or reuse for unforeseen applications.
2424

2525
## Duck typing is a good idea
2626

27-
[Duck typing][] treats objects based on what they can _do_, not based on what type
28-
they _are_. "If it walks like a duck and it quacks like a duck, then it must be a
29-
duck."
27+
[Duck typing][] treats objects based on what they can _do_, not based on what
28+
type they _are_. "If it walks like a duck and it quacks like a duck, then it
29+
must be a duck."
3030

3131
Python in general and scientific Python in particular leverage _interfaces_
3232
(also known as Protocols) to support interoperability and reuse. For example, it

docs/pages/principles/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ has_children: true
99
# Principles
1010

1111
These pages are focused on designing good software, with a focus on end-user
12-
research code. [Process recommendations][] discusses the process of writing software,
13-
and [Design recommendations][] covers some tips about writing easy to read and
14-
maintain code.
12+
research code. [Process recommendations][] discusses the process of writing
13+
software, and [Design recommendations][] covers some tips about writing easy to
14+
read and maintain code.
1515

1616
<!-- prettier-ignore-start -->
1717

docs/pages/tutorials/module.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ In this section you will:
1818
## Module
1919

2020
As a concrete example, let's suppose we have a simple function that encodes
21-
[Snell's Law][]. Perhaps this function currently lives in a Jupyter notebook or a
22-
`.py` file in an email attachment. We want to put into some more lasting, maintainable,
23-
reusable, and/or shareable form.
21+
[Snell's Law][]. Perhaps this function currently lives in a Jupyter notebook or
22+
a `.py` file in an email attachment. We want to put into some more lasting,
23+
maintainable, reusable, and/or shareable form.
2424

2525
Here is the code:
2626

@@ -64,8 +64,8 @@ is extremely useful for collaborators, and the most common collaborator is
6464
Future You! It also includes type hints; this tells a programmer, type checker,
6565
or IDE what types are expected in an out of the function.
6666

67-
Further, by following the [numpydoc standard][], we will be able to automatically
68-
generate nice-looking HTML documentation later. Notable features:
67+
Further, by following the [numpydoc standard][], we will be able to
68+
automatically generate nice-looking HTML documentation later. Notable features:
6969

7070
- At the top, there is a succinct, one-line summary of the function's purpose.
7171
It must one line.

docs/pages/tutorials/packaging.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ cd example
3232

3333
You should immediately initialize an empty Git repository in this directory; if
3434
you need a refresher on using Git for version control, check out the Software
35-
Carpentry lesson [Version Control with Git][]. You should commit changes regularly
36-
throughout what follows. This tutorial will not explicitly remind you to commit your
37-
work after this point.
35+
Carpentry lesson [Version Control with Git][]. You should commit changes
36+
regularly throughout what follows. This tutorial will not explicitly remind you
37+
to commit your work after this point.
3838

3939
```bash
4040
git init

docs/pages/tutorials/test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ include:
146146
- `-k EXPRESSION` Filter tests by pattern-matching test name.
147147
- `--lf` Run only tests that failed on the previous run (**l**ast **f**ail).
148148

149-
Consult the [pytest documentation][] for more. For more advanced pytest suggestions,
150-
see our [pytest guide][].
149+
Consult the [pytest documentation][] for more. For more advanced pytest
150+
suggestions, see our [pytest guide][].
151151

152152
<!-- prettier-ignore-start -->
153153

{{cookiecutter.project_name}}/.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ jobs:
7474
--durations=20
7575
7676
- name: Upload coverage report
77-
uses: codecov/codecov-action@v5.0.2
77+
uses: codecov/codecov-action@v5.1.1
7878
with:
7979
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}

{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type!='compiled' %}cd.yml{% endif %}

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
path: dist
5050

5151
- name: Generate artifact attestation for sdist and wheel
52-
uses: actions/attest-build-provenance@v1.4.4
52+
uses: actions/attest-build-provenance@v2.0.1
5353
with:
5454
subject-path: "dist/*"
5555

0 commit comments

Comments
 (0)