Skip to content

Commit 5efea35

Browse files
authored
chore: update rhiza to v1.2.5 (#902)
1 parent 61ac99a commit 5efea35

15 files changed

Lines changed: 41 additions & 51 deletions

.github/workflows/rhiza_benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ on:
2020

2121
jobs:
2222
benchmark:
23-
uses: jebel-quant/rhiza/.github/workflows/rhiza_benchmark.yml@v1.2.2
23+
uses: jebel-quant/rhiza/.github/workflows/rhiza_benchmark.yml@v1.2.5
2424
secrets: inherit

.github/workflows/rhiza_book.yml

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

3030
jobs:
3131
book:
32-
uses: jebel-quant/rhiza/.github/workflows/rhiza_book.yml@v1.2.2
32+
uses: jebel-quant/rhiza/.github/workflows/rhiza_book.yml@v1.2.5
3333
secrets: inherit
3434
permissions:
3535
contents: read

.github/workflows/rhiza_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ on:
2626

2727
jobs:
2828
ci:
29-
uses: jebel-quant/rhiza/.github/workflows/rhiza_ci.yml@v1.2.2
29+
uses: jebel-quant/rhiza/.github/workflows/rhiza_ci.yml@v1.2.5
3030
secrets: inherit

.github/workflows/rhiza_codeql.yml

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

4040
jobs:
4141
codeql:
42-
uses: jebel-quant/rhiza/.github/workflows/rhiza_codeql.yml@v1.2.2
42+
uses: jebel-quant/rhiza/.github/workflows/rhiza_codeql.yml@v1.2.5
4343
secrets: inherit
4444
permissions:
4545
security-events: write # Upload CodeQL results to code scanning

.github/workflows/rhiza_marimo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ on:
2828

2929
jobs:
3030
marimo:
31-
uses: jebel-quant/rhiza/.github/workflows/rhiza_marimo.yml@v1.2.2
31+
uses: jebel-quant/rhiza/.github/workflows/rhiza_marimo.yml@v1.2.5
3232
secrets: inherit

.github/workflows/rhiza_mutation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
# this repo sets the `MUTATION_ENABLED` variable to 'true'. Gating here in
4343
# the caller keeps it optional regardless of the pinned reusable workflow.
4444
if: ${{ vars.MUTATION_ENABLED == 'true' }}
45-
uses: jebel-quant/rhiza/.github/workflows/rhiza_mutation.yml@v1.2.2
45+
uses: jebel-quant/rhiza/.github/workflows/rhiza_mutation.yml@v1.2.5
4646
secrets: inherit
4747
permissions:
4848
contents: read

.github/workflows/rhiza_paper.yml

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

2929
jobs:
3030
paper:
31-
uses: jebel-quant/rhiza/.github/workflows/rhiza_paper.yml@v1.2.2
31+
uses: jebel-quant/rhiza/.github/workflows/rhiza_paper.yml@v1.2.5
3232
secrets: inherit
3333
permissions:
3434
contents: write

.github/workflows/rhiza_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
version: "0.11.16"
223223

224224
- name: Configure git auth for private packages
225-
uses: jebel-quant/rhiza/.github/actions/configure-git-auth@v1.2.2
225+
uses: jebel-quant/actions/configure-git-auth@6d52725ca371d609489c5b50236965ad70bbe528 # v1
226226
with:
227227
token: ${{ secrets.GH_PAT }}
228228

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
pass_filenames: false
3232

3333
- repo: https://github.com/astral-sh/ruff-pre-commit
34-
rev: 'v0.15.21'
34+
rev: 'v0.16.0'
3535
hooks:
3636
- id: ruff
3737
args: [ --fix, --exit-non-zero-on-fix, --unsafe-fixes ]
@@ -71,12 +71,12 @@ repos:
7171
args: ["--ini", ".bandit", "--exclude", ".venv,tests,.rhiza/tests,.git,.pytest_cache"]
7272

7373
- repo: https://github.com/betterleaks/betterleaks
74-
rev: v1.6.1
74+
rev: v1.7.2
7575
hooks:
7676
- id: betterleaks
7777

7878
- repo: https://github.com/astral-sh/uv-pre-commit
79-
rev: 0.11.28
79+
rev: 0.12.0
8080
hooks:
8181
- id: uv-lock
8282

.rhiza/.cfg.toml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,22 @@ values = [
2828
"prod"
2929
]
3030

31+
# Anchored to the [project] table on purpose. `search`/`replace` are applied to
32+
# EVERY occurrence in the file, so the obvious `version = "{current_version}"`
33+
# also rewrites any [tool.*] table that happens to share the current number.
34+
# Dependency pins (httpx>=1.2.0, rich==1.2.0) are never at risk either way —
35+
# they are not line-anchored `version = ` assignments — but a second table is.
3136
[[tool.bumpversion.files]]
3237
filename = "pyproject.toml"
33-
search = 'version = "{current_version}"'
34-
replace = 'version = "{new_version}"'
38+
regex = true
39+
search = '(?ms)^\[project\]((?:(?!^\[)[\s\S])*?)^version = "{current_version}"'
40+
replace = '[project]\1version = "{new_version}"'
41+
42+
# NOTE for downstream projects: do NOT add a glob over your own
43+
# .github/workflows/*.yml here. Those stubs pin jebel-quant/rhiza's version
44+
# (the template you sync from), not your project's, so rewriting them with your
45+
# version would point them at a rhiza tag that does not exist. The template ref
46+
# is managed by /rhiza:update via .rhiza/template.yml instead.
3547

3648
# Keep the reusable-workflow stubs in the bundles pinned to the current release.
3749
# These stubs are synced into downstream repos and must reference an existing tag.

0 commit comments

Comments
 (0)