Skip to content

Commit dfdebe1

Browse files
BREAK: remove symplot (#485)
* BREAK: move `symplot` to `ampform.sympy.slider` * BREAK: remove `SliderKwargs` etc * DOC: widen cell output for wide formulas * DOC: write Issues instead of Tracker in PyPI * DX: define `test-all` task * DX: include `uv.lock` in VS Code search * DX: outsource lock upgrades to Dependabot * DX: run all CI tasks through `poe` * DX: switch to `ty` as type checker * DX: use Poe the Poet executor options * ENH: extend value type of dict * ENH: support MathJax in bibliography * ENH: widen key type of `kinematic_variables` * MAINT: apply new Ruff formatting * MAINT: remove `from __future__ import annotations` from notebooks * MAINT: remove install cells * MAINT: remove `mpl-interactions` * MAINT: remove mpl figure format magic call * MAINT: remove redundant init files under `tests/` * MAINT: remove whitespace from cells * MAINT: update bibliography style and citation keys * MAINT: update Jupyter kernels * MAINT: update test hashes * MAINT: upgrade lock files and dev files Co-authored-by: Remco de Boer <29308176+redeboer@users.noreply.github.com>
1 parent 16227f0 commit dfdebe1

85 files changed

Lines changed: 2891 additions & 4683 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: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"*.ico",
2626
".editorconfig",
2727
".envrc",
28+
".github/dependabot.yml",
2829
".gitignore",
2930
".pre-commit-config.yaml",
3031
".prettierignore",
@@ -40,7 +41,6 @@
4041
"ignoreWords": [
4142
"Autoupdate",
4243
"Dalitzplot",
43-
"MAINT",
4444
"Minkowski",
4545
"PYDEVD",
4646
"adrs",
@@ -53,6 +53,8 @@
5353
"automodule",
5454
"axhline",
5555
"axvline",
56+
"backend_nbagg",
57+
"bbox",
5658
"bbox_to_anchor",
5759
"bdist",
5860
"bgcolor",
@@ -71,7 +73,6 @@
7173
"compwa",
7274
"concat",
7375
"conds",
74-
"coolwarm",
7576
"displaystyle",
7677
"dlink",
7778
"docnb",
@@ -109,6 +110,7 @@
109110
"imag",
110111
"iplt",
111112
"ipykernel",
113+
"ipympl",
112114
"ipyplot",
113115
"ipywidgets",
114116
"isfunction",
@@ -171,9 +173,9 @@
171173
"pylance",
172174
"pypi",
173175
"pyproject",
174-
"pyright",
175176
"pytestconfig",
176177
"rankdir",
178+
"relim",
177179
"repr",
178180
"richman",
179181
"rightarrow",
@@ -189,10 +191,10 @@
189191
"sympifiable",
190192
"sympified",
191193
"sympify",
192-
"symplot",
193194
"theano",
194195
"ticklabels",
195196
"tolist",
197+
"tqdm",
196198
"unparse",
197199
"unsrt",
198200
"untracked",
@@ -211,6 +213,7 @@
211213
"xticks",
212214
"xytext",
213215
"yaxis",
216+
"ydata",
214217
"ylabel",
215218
"ylim",
216219
"yticks"
@@ -267,7 +270,6 @@
267270
"mathbb",
268271
"matplotlib",
269272
"Mikhasenko",
270-
"mypy",
271273
"nishijima",
272274
"numpy",
273275
"parametrizations",

.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 & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +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@v5
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-
--all-extras \
46-
--group test \
47-
--no-dev \
48-
${{ steps.with.outputs.packages }} \
49-
pytest \
50-
-k benchmark \
51-
--benchmark-json output.json \
52-
--durations=0
53-
working-directory: benchmarks
29+
run: uvx --from poethepoet poe benchmark
5430
- name: Warn on performance decrease
5531
if: github.event_name == 'pull_request'
5632
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-qrules-v0.9.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
name: Run unit tests
2323
runs-on: ubuntu-24.04
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6
2626
with:
2727
fetch-depth: 0
28-
- uses: actions/setup-python@v5
28+
- uses: actions/setup-python@v6
2929
with:
3030
python-version: "3.13"
31-
- uses: astral-sh/setup-uv@v5
31+
- uses: astral-sh/setup-uv@v7
3232
- name: Run pytest with QRules v0.9
3333
run: |
3434
uv run \

.github/workflows/ci.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,23 @@ 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
37-
with:
38-
coverage-target: ampform
39-
macos-python-version: "3.10"
40-
specific-pip-packages: ${{ inputs.specific-pip-packages }}
41-
secrets:
42-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4329
style:
44-
if: inputs.specific-pip-packages == ''
4530
secrets:
4631
token: ${{ secrets.PAT }}
47-
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v3.0
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 }}
37+
with:
38+
coverage-python-version: "3.13"
39+
macos-python-version: "3.10"

.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: 2 additions & 2 deletions
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
@@ -26,7 +26,7 @@ jobs:
2626
</body>
2727
</html>' > build/index.html
2828
- id: deployment
29-
uses: actions/upload-pages-artifact@v3
29+
uses: actions/upload-pages-artifact@v4
3030
with:
3131
path: build/
3232

0 commit comments

Comments
 (0)