Skip to content

Commit 57ede91

Browse files
authored
Merge branch 'pymc-devs:main' into rename-twitter-to-x
2 parents d1e50f4 + 7a995a0 commit 57ede91

File tree

224 files changed

+318
-238
lines changed

Some content is hidden

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

224 files changed

+318
-238
lines changed

.github/workflows/devcontainer-docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
steps:
2525
- name: Checkout source
2626
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
27+
with:
28+
persist-credentials: false
2729

2830
- name: Setup Docker buildx
2931
uses: docker/[email protected]

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
17+
with:
18+
persist-credentials: false
1719

1820
- name: Login to Docker Hub
1921
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567

.github/workflows/mypy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
16+
with:
17+
persist-credentials: false
1618
- uses: mamba-org/setup-micromamba@v2
1719
with:
1820
environment-file: conda-envs/environment-test.yml

.github/workflows/pr-auto-label.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
name: "Pull Request Labeler"
22
on:
3-
- pull_request_target
3+
# The labeler doesn't execute any contributed code, so it should be fairly safe.
4+
- pull_request_target # zizmor: ignore[dangerous-triggers]
45

56
jobs:
67
sync:
78
permissions:
8-
contents: read
99
pull-requests: write
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout repository
13-
uses: actions/checkout@v2
1412
- name: Sync labels with closing issues
1513
uses: wd60622/[email protected]
1614
with:

.github/workflows/rtd-link-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Read the Docs Pull Request Preview
22
on:
3-
pull_request_target:
3+
# See <https://github.com/readthedocs/actions/issues/45>
4+
pull_request_target: # zizmor: ignore[dangerous-triggers]
45
types:
56
- opened
67

7-
permissions:
8-
pull-requests: write
9-
108
jobs:
119
documentation-links:
1210
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
1313
steps:
1414
- uses: readthedocs/actions/preview@v1
1515
with:

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3535
with:
3636
fetch-depth: 0
37+
persist-credentials: false
3738
- uses: dorny/paths-filter@v3
3839
id: changes
3940
with:
@@ -144,6 +145,8 @@ jobs:
144145
shell: bash -leo pipefail {0}
145146
steps:
146147
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
148+
with:
149+
persist-credentials: false
147150
- uses: mamba-org/setup-micromamba@v2
148151
with:
149152
environment-file: conda-envs/environment-test.yml
@@ -194,6 +197,8 @@ jobs:
194197
shell: cmd /C call {0}
195198
steps:
196199
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
200+
with:
201+
persist-credentials: false
197202
- uses: mamba-org/setup-micromamba@v2
198203
with:
199204
environment-file: conda-envs/windows-environment-test.yml
@@ -253,6 +258,8 @@ jobs:
253258
shell: bash -leo pipefail {0}
254259
steps:
255260
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
261+
with:
262+
persist-credentials: false
256263
- uses: mamba-org/setup-micromamba@v2
257264
with:
258265
environment-file: conda-envs/environment-test.yml
@@ -297,6 +304,8 @@ jobs:
297304
shell: bash -leo pipefail {0}
298305
steps:
299306
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
307+
with:
308+
persist-credentials: false
300309
- uses: mamba-org/setup-micromamba@v2
301310
with:
302311
environment-file: conda-envs/environment-jax.yml
@@ -341,6 +350,8 @@ jobs:
341350
shell: cmd /C call {0}
342351
steps:
343352
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
353+
with:
354+
persist-credentials: false
344355
- uses: mamba-org/setup-micromamba@v2
345356
with:
346357
environment-file: conda-envs/windows-environment-test.yml

.github/workflows/zizmor.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# https://github.com/woodruffw/zizmor
2+
name: zizmor GHA analysis
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["**"]
9+
10+
jobs:
11+
zizmor:
12+
name: zizmor latest via PyPI
13+
runs-on: ubuntu-latest
14+
permissions:
15+
security-events: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
22+
- uses: hynek/setup-cached-uv@v2
23+
24+
- name: Run zizmor 🌈
25+
run: uvx zizmor --format sarif . > results.sarif
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Upload SARIF file
30+
uses: github/codeql-action/upload-sarif@v3
31+
with:
32+
# Path to SARIF file relative to the root of the repository
33+
sarif_file: results.sarif
34+
# Optional category for the results
35+
# Used to differentiate multiple results for one commit
36+
category: zizmor

.pre-commit-config.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@ repos:
3737
hooks:
3838
- id: sphinx-lint
3939
args: ["."]
40-
#- repo: https://github.com/lucianopaz/head_of_apache
41-
# rev: "0.0.3"
42-
# hooks:
43-
# - id: head_of_apache
44-
# args:
45-
# - --author=The PyMC Developers
46-
# - --exclude=docs/
47-
# - --exclude=scripts/
48-
# - --exclude=binder/
49-
# - --exclude=versioneer.py
40+
- repo: https://github.com/lucianopaz/head_of_apache
41+
rev: "0.1.0"
42+
hooks:
43+
- id: head_of_apache
44+
args:
45+
- --author=The PyMC Developers
46+
- --exclude=docs/
47+
- --exclude=scripts/
48+
- --exclude=binder/
49+
- --exclude=versioneer.py
50+
- --last-year-present
5051
- repo: https://github.com/astral-sh/ruff-pre-commit
51-
rev: v0.9.1
52+
rev: v0.9.2
5253
hooks:
5354
- id: ruff
5455
args: [--fix, --show-fixes]

benchmarks/benchmarks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The PyMC Developers
1+
# Copyright 2024 - present The PyMC Developers
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

benchmarks/benchmarks/benchmarks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The PyMC Developers
1+
# Copyright 2024 - present The PyMC Developers
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)