Skip to content

Commit 0b5edb0

Browse files
DX: upgrade pre-commit hooks and lock files (#507)
* DX: ignore local agent configuration * DX: pin reusable workflows by commit hash * FIX: match K-matrix residue symbols on str(s) * MAINT: consolidate qrules imports in helicity.decay * MAINT: migrate noqa codes to Ruff rule names * MAINT: simplify coefficient multiplicity test * MAINT: standardize `# ty: ignore` comments
1 parent 9713cac commit 0b5edb0

48 files changed

Lines changed: 1709 additions & 1391 deletions

Some content is hidden

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

.github/workflows/benchmark.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
name: Performance regression
1919
runs-on: ubuntu-24.04
2020
steps:
21-
- uses: actions/checkout@v7
21+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2222
with:
2323
fetch-depth: 0
24-
- uses: actions/setup-python@v6
24+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2525
with:
2626
python-version: "3.13"
27-
- uses: astral-sh/setup-uv@v7
27+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
2828
- name: Run pytest-benchmark
2929
run: uvx --from poethepoet poe benchmark
3030
- name: Warn on performance decrease
3131
if: github.event_name == 'pull_request'
32-
uses: benchmark-action/github-action-benchmark@v1
32+
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1
3333
with:
3434
benchmark-data-dir-path: ""
3535
comment-on-alert: true
@@ -41,7 +41,7 @@ jobs:
4141
tool: pytest
4242
- name: Create local benchmark data repository
4343
if: github.event_name != 'pull_request'
44-
uses: benchmark-action/github-action-benchmark@v1
44+
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1
4545
with:
4646
benchmark-data-dir-path: ""
4747
gh-repository: github.com/ComPWA/ampform-benchmark-results

.github/workflows/cd.yml

Lines changed: 5 additions & 5 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@v4
12+
uses: ComPWA/actions/.github/workflows/close-milestone.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
1313
package-name:
14-
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@v4
14+
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
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@v4
28-
- uses: pypa/gh-action-pypi-publish@release/v1
27+
- uses: ComPWA/actions/build-pypi-distribution@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
28+
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
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@v4
32+
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2

.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@v7
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
with:
2727
fetch-depth: 0
28-
- uses: actions/setup-python@v6
28+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2929
with:
3030
python-version: "3.13"
31-
- uses: astral-sh/setup-uv@v7
31+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
3232
- name: Run pytest with QRules v0.9
3333
run: |
3434
uv run \

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020

2121
jobs:
2222
doc:
23-
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v4.0
23+
uses: ComPWA/actions/.github/workflows/ci-docs.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
2424
permissions:
2525
pages: write
2626
id-token: write
@@ -29,9 +29,9 @@ jobs:
2929
style:
3030
secrets:
3131
token: ${{ secrets.PAT }}
32-
uses: ComPWA/actions/.github/workflows/style.yml@v4.0
32+
uses: ComPWA/actions/.github/workflows/style.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
3333
test:
34-
uses: ComPWA/actions/.github/workflows/test.yml@v4.0
34+
uses: ComPWA/actions/.github/workflows/test.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
3535
secrets:
3636
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3737
with:

.github/workflows/clean-caches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Remove caches
1717
runs-on: ubuntu-slim
1818
steps:
19-
- uses: ComPWA/actions/clean-caches@v4
19+
- uses: ComPWA/actions/clean-caches@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
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@v4
20+
uses: ComPWA/actions/.github/workflows/lock.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2
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@v4
14+
uses: ComPWA/actions/.github/workflows/pr-linting.yml@13f1a3b0c831615fb49c008bcc48113da8a76477 # 4.0.2

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
</body>
2727
</html>' > build/index.html
2828
- id: deployment
29-
uses: actions/upload-pages-artifact@v5
29+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
3030
with:
3131
path: build/
3232

@@ -41,4 +41,4 @@ jobs:
4141
runs-on: ubuntu-24.04
4242
steps:
4343
- id: deployment
44-
uses: actions/deploy-pages@v5
44+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
update_release_draft:
1212
runs-on: ubuntu-slim
1313
steps:
14-
- uses: release-drafter/release-drafter@v7
14+
- uses: release-drafter/release-drafter@34d80673e067bdc0c24568d3af899c216adcfaa9 # v7.7.0
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ prof/
3737
pyvenv*/
3838

3939
# Settings
40+
/.agents/
41+
/.claude/
42+
/.codex/
4043
.idea/
4144
**.code-workspace
45+
AGENTS.md
46+
CLAUDE.md
4247

4348
# Exceptions
4449
!.cspell.json

0 commit comments

Comments
 (0)