Skip to content

Commit 377545e

Browse files
MAINT: upgrade lock files (#554)
* BEHAVIOR: remove extras from `test` dependency group * DOC: disable full-screen button on website * DOC: write Issues instead of Tracker in PyPI * DX: hide Sphinx deprecation warnings * DX: run all CI tasks through `poe` * DX: switch to `ty` as type checker * DX: use Poe the Poet executor options * ENH: automatically update `test-all` job * ENH: generalize function signatures * FIX: collect doctests * FIX: install extras for `pytest` * FIX: relink `sp.Basic` * FIX: support arbitrary functions in `get_source_code()` * MAINT: address Ruff issues * MAINT: apply Prettier formatting to notebooks * MAINT: fix intersphinx problems * MAINT: ignore `np.object` warning * MAINT: implement updates from auto-formatters * MAINT: improve typing of symbols * MAINT: remove `nbmake`, `poethepoet`, and `sphinx-autobuild` * MAINT: upgrade lock files and workflows * MAINT: upgrade developer config
1 parent 4d5ec6f commit 377545e

56 files changed

Lines changed: 2598 additions & 2965 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cspell.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"*.ico",
2525
".editorconfig",
2626
".envrc",
27+
".github/dependabot.yml",
2728
".gitignore",
2829
".pre-commit-config.yaml",
2930
".prettierignore",
@@ -33,12 +34,10 @@
3334
"CITATION.cff",
3435
"codecov.yml",
3536
"docs/conf.py",
36-
"pyproject.toml",
37-
"typings"
37+
"pyproject.toml"
3838
],
3939
"ignoreWords": [
4040
"FURB",
41-
"MAINT",
4241
"Nelder",
4342
"PYDEVD",
4443
"absl",
@@ -145,7 +144,6 @@
145144
"pypi",
146145
"pyplot",
147146
"pyproject",
148-
"pyright",
149147
"pytestconfig",
150148
"qrules",
151149
"rightarrow",
@@ -186,6 +184,7 @@
186184
"useGitignore": true,
187185
"version": "0.2",
188186
"words": [
187+
"analyticity",
189188
"backends",
190189
"blatt",
191190
"bottomness",
@@ -219,7 +218,6 @@
219218
"mathbb",
220219
"matplotlib",
221220
"mkdir",
222-
"mypy",
223221
"nishijima",
224222
"numpy",
225223
"optimizable",

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
3+
multi-ecosystem-groups:
4+
lock:
5+
assignees: [redeboer]
6+
commit-message: { prefix: MAINT }
7+
schedule: { interval: quarterly }
8+
9+
updates:
10+
- package-ecosystem: github-actions
11+
directory: "/"
12+
labels: [⬆️ Lock]
13+
multi-ecosystem-group: lock
14+
patterns: ["*"]
15+
- package-ecosystem: uv
16+
directory: "/"
17+
labels: [⬆️ Lock]
18+
multi-ecosystem-group: lock
19+
patterns: ["*"]

.github/workflows/benchmark.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,21 @@ on:
1212
- main
1313
- epic/*
1414
workflow_dispatch:
15-
inputs:
16-
specific-pip-packages:
17-
description: Run benchmarks with specific pip packages
18-
required: false
19-
type: string
2015

2116
jobs:
2217
benchmark:
2318
name: Performance regression
2419
runs-on: ubuntu-24.04
2520
steps:
26-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2722
with:
2823
fetch-depth: 0
29-
- uses: actions/setup-python@v5
24+
- uses: actions/setup-python@v6
3025
with:
3126
python-version: "3.13"
32-
- uses: astral-sh/setup-uv@v6
33-
- id: with
34-
if: inputs.specific-pip-packages
35-
name: Determine additional packages to install
36-
run: |
37-
additional_packages=''
38-
for package in ${{ inputs.specific-pip-packages }}; do
39-
additional_packages="$additional_packages --with $package"
40-
done
41-
echo "packages=$additional_packages" | tee -a $GITHUB_OUTPUT
27+
- uses: astral-sh/setup-uv@v7
4228
- name: Run pytest-benchmark
43-
run: |
44-
uv run \
45-
--group test \
46-
--no-dev \
47-
${{ steps.with.outputs.packages }} \
48-
pytest \
49-
-k benchmark \
50-
--benchmark-json output.json \
51-
--durations=0
52-
working-directory: benchmarks
29+
run: uvx --from poethepoet poe benchmark
5330
- name: Warn on performance decrease
5431
if: github.event_name == 'pull_request'
5532
uses: benchmark-action/github-action-benchmark@v1

.github/workflows/cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
jobs:
1010
milestone:
1111
if: startsWith(github.ref, 'refs/tags')
12-
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v3
12+
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v4
1313
package-name:
14-
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@v3
14+
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@v4
1515
pypi:
1616
environment:
1717
name: PyPI
@@ -24,9 +24,9 @@ jobs:
2424
id-token: write
2525
runs-on: ubuntu-24.04
2626
steps:
27-
- uses: ComPWA/actions/build-pypi-distribution@v3
27+
- uses: ComPWA/actions/build-pypi-distribution@v4
2828
- uses: pypa/gh-action-pypi-publish@release/v1
2929
push:
3030
if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
3131
secrets: inherit
32-
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v3
32+
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v4

.github/workflows/ci.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,25 @@ on:
1717
- epic/*
1818
- "[0-9]+.[0-9]+.x"
1919
workflow_dispatch:
20-
inputs:
21-
specific-pip-packages:
22-
description: Run CI with specific pip packages
23-
required: false
24-
type: string
2520

2621
jobs:
2722
doc:
28-
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v3.0
23+
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v4.0
2924
permissions:
3025
pages: write
3126
id-token: write
3227
with:
3328
apt-packages: graphviz
34-
specific-pip-packages: ${{ inputs.specific-pip-packages }}
35-
pytest:
36-
uses: ComPWA/actions/.github/workflows/pytest.yml@v3.0
29+
style:
30+
secrets:
31+
token: ${{ secrets.PAT }}
32+
uses: ComPWA/actions/.github/workflows/style.yml@v4.0
33+
test:
34+
uses: ComPWA/actions/.github/workflows/test.yml@v4.0
35+
secrets:
36+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3737
with:
38-
coverage-target: tensorwaves
38+
coverage-python-version: "3.13"
3939
macos-python-version: "3.10"
4040
multithreaded: false
41-
specific-pip-packages: ${{ inputs.specific-pip-packages }}
4241
test-output-path: tests/output/
43-
secrets:
44-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
45-
style:
46-
if: inputs.specific-pip-packages == ''
47-
secrets:
48-
token: ${{ secrets.PAT }}
49-
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v3.0

.github/workflows/clean-caches.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ on:
1414
jobs:
1515
cleanup:
1616
name: Remove caches
17-
runs-on: ubuntu-24.04
17+
runs-on: ubuntu-slim
1818
steps:
19-
- uses: ComPWA/actions/clean-caches@v3
19+
- uses: ComPWA/actions/clean-caches@v4
2020
with:
2121
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
ref: ${{ inputs.ref }}

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ on:
1717

1818
jobs:
1919
lock:
20-
uses: ComPWA/actions/.github/workflows/lock.yml@v3
20+
uses: ComPWA/actions/.github/workflows/lock.yml@v4
2121
secrets:
2222
token: ${{ secrets.PAT }}

.github/workflows/pr-linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ on:
1111

1212
jobs:
1313
lint-pr:
14-
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v3
14+
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v4

.github/workflows/redirect-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-24.04
10+
runs-on: ubuntu-slim
1111
steps:
1212
- name: Build redirect page
1313
id: build

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
update_release_draft:
12-
runs-on: ubuntu-24.04
12+
runs-on: ubuntu-slim
1313
steps:
1414
- uses: release-drafter/release-drafter@v6
1515
env:

0 commit comments

Comments
 (0)