Skip to content

Commit 0c01a27

Browse files
authored
Merge branch 'main' into implement_canonical_structs
2 parents a0ffbb3 + 46654ad commit 0c01a27

Some content is hidden

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

51 files changed

+865
-305
lines changed

.github/workflows/check_changelogs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Check changelog entries
22

33
on:
44
pull_request:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
59

610
jobs:
711
check-changelogs:

.github/workflows/codspeed.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
with:
3232
python-version: "3.11"
3333
- name: Install Hatch
34-
run: |
35-
python -m pip install --upgrade pip
36-
pip install hatch
34+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
35+
with:
36+
version: '1.16.5'
3737
- name: Run the benchmarks
3838
uses: CodSpeedHQ/action@v4
3939
with:

.github/workflows/gpu_test.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ on:
1313
env:
1414
LD_LIBRARY_PATH: /usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64
1515

16+
permissions:
17+
contents: read
18+
1619
concurrency:
1720
group: ${{ github.workflow }}-${{ github.ref }}
1821
cancel-in-progress: true
1922

2023
jobs:
2124
test:
22-
name: py=${{ matrix.python-version }}, deps=${{ matrix.dependency-set }}
25+
name: py=${{ matrix.python-version }}
2326

2427
runs-on: gpu-runner
2528
strategy:
2629
matrix:
2730
python-version: ['3.11']
28-
dependency-set: ["minimal"]
2931

3032
steps:
3133
- uses: actions/checkout@v6
@@ -54,17 +56,17 @@ jobs:
5456
with:
5557
python-version: ${{ matrix.python-version }}
5658
cache: 'pip'
57-
- name: Install Hatch and CuPy
58-
run: |
59-
python -m pip install --upgrade pip
60-
pip install hatch
59+
- name: Install Hatch
60+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
61+
with:
62+
version: '1.16.5'
6163
- name: Set Up Hatch Env
6264
run: |
63-
hatch env create gputest.py${{ matrix.python-version }}-${{ matrix.dependency-set }}
64-
hatch env run -e gputest.py${{ matrix.python-version }}-${{ matrix.dependency-set }} list-env
65+
hatch env create gputest.py${{ matrix.python-version }}
66+
hatch env run -e gputest.py${{ matrix.python-version }} list-env
6567
- name: Run Tests
6668
run: |
67-
hatch env run --env gputest.py${{ matrix.python-version }}-${{ matrix.dependency-set }} run-coverage-gpu
69+
hatch env run --env gputest.py${{ matrix.python-version }} run-coverage
6870
6971
- name: Upload coverage
7072
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1

.github/workflows/hypothesis.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- cron: "0 0 * * *" # Daily “At 00:00” UTC
1010
workflow_dispatch: # allows you to trigger manually
1111

12+
permissions:
13+
contents: read
14+
1215
env:
1316
FORCE_COLOR: 3
1417

@@ -41,9 +44,9 @@ jobs:
4144
python-version: ${{ matrix.python-version }}
4245
cache: 'pip'
4346
- name: Install Hatch
44-
run: |
45-
python -m pip install --upgrade pip
46-
pip install hatch
47+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
48+
with:
49+
version: '1.16.5'
4750
- name: Set Up Hatch Env
4851
run: |
4952
hatch env create test.py${{ matrix.python-version }}-${{ matrix.dependency-set }}

.github/workflows/lint.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches: [main, 3.1.x]
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
concurrency:
1114
group: ${{ github.workflow }}-${{ github.ref }}
1215
cancel-in-progress: true
@@ -17,9 +20,4 @@ jobs:
1720
runs-on: ubuntu-latest
1821
steps:
1922
- uses: actions/checkout@v6
20-
- name: Install uv
21-
uses: astral-sh/setup-uv@v7
22-
- name: Install prek
23-
run: uv tool install prek
24-
- name: Run prek
25-
run: prek run --all-files
23+
- uses: j178/prek-action@v1

.github/workflows/needs_release_notes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: "Pull Request Labeler"
22

33
on:
4-
- pull_request_target
4+
- pull_request_target:
5+
types: [opened, reopened, synchronize]
56

67
jobs:
78
labeler:

.github/workflows/nightly_wheels.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: '0 2 * * *'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build_and_upload_nightly:
1114
name: Build and upload nightly wheels
@@ -22,10 +25,10 @@ jobs:
2225
with:
2326
python-version: '3.13'
2427

25-
- name: Install build dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install hatch
28+
- name: Install Hatch
29+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
30+
with:
31+
version: '1.16.5'
2932

3033
- name: Build wheel and sdist
3134
run: hatch build

.github/workflows/releases.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Wheels
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
412

513
jobs:
614

@@ -21,10 +29,10 @@ jobs:
2129
with:
2230
python-version: '3.11'
2331

24-
- name: Install PyBuild
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install hatch
32+
- name: Install Hatch
33+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
34+
with:
35+
version: '1.16.5'
2836
- name: Build wheel and sdist
2937
run: hatch build
3038
- uses: actions/upload-artifact@v6

.github/workflows/test.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches: [ main, 3.1.x ]
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
concurrency:
1417
group: ${{ github.workflow }}-${{ github.ref }}
1518
cancel-in-progress: true
@@ -51,9 +54,9 @@ jobs:
5154
python-version: ${{ matrix.python-version }}
5255
cache: 'pip'
5356
- name: Install Hatch
54-
run: |
55-
python -m pip install --upgrade pip
56-
pip install hatch
57+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
58+
with:
59+
version: '1.16.5'
5760
- name: Set Up Hatch Env
5861
run: |
5962
hatch env create test.py${{ matrix.python-version }}-${{ matrix.dependency-set }}
@@ -93,9 +96,9 @@ jobs:
9396
python-version: ${{ matrix.python-version }}
9497
cache: 'pip'
9598
- name: Install Hatch
96-
run: |
97-
python -m pip install --upgrade pip
98-
pip install hatch
99+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
100+
with:
101+
version: '1.16.5'
99102
- name: Set Up Hatch Env
100103
run: |
101104
hatch env create ${{ matrix.dependency-set }}
@@ -122,9 +125,9 @@ jobs:
122125
python-version: '3.13'
123126
cache: 'pip'
124127
- name: Install Hatch
125-
run: |
126-
python -m pip install --upgrade pip
127-
pip install hatch
128+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
129+
with:
130+
version: '1.16.5'
128131
- name: Set Up Hatch Env
129132
run: |
130133
hatch run doctest:pip list
@@ -150,4 +153,4 @@ jobs:
150153
contains(needs.*.result, 'cancelled')
151154
run: exit 1
152155
- name: Success
153-
run: echo Success!
156+
run: echo Success!

.pre-commit-config.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ default_language_version:
1111

1212
repos:
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.14.14
14+
rev: v0.15.4
1515
hooks:
1616
- id: ruff-check
1717
args: ["--fix", "--show-fixes"]
@@ -47,18 +47,22 @@ repos:
4747
- hypothesis
4848
- s3fs
4949
- repo: https://github.com/scientific-python/cookie
50-
rev: 2025.11.21
50+
rev: 2026.03.02
5151
hooks:
5252
- id: sp-repo-review
53-
- repo: https://github.com/pre-commit/pygrep-hooks
54-
rev: v1.10.0
55-
hooks:
56-
- id: rst-directive-colons
57-
- id: rst-inline-touching-normal
5853
- repo: https://github.com/numpy/numpydoc
5954
rev: v1.10.0
6055
hooks:
6156
- id: numpydoc-validation
57+
- repo: local
58+
hooks:
59+
- id: ban-lstrip-rstrip
60+
name: ban lstrip/rstrip
61+
language: pygrep
62+
# Matches .lstrip() or .rstrip() where the string argument is 2+ characters.
63+
entry: "\\.(lstrip|rstrip)\\([\"'][^\"']{2,}[\"']\\)"
64+
types: [python]
65+
files: ^(src|tests)/
6266
- repo: https://github.com/twisted/towncrier
6367
rev: 25.8.0
6468
hooks:

0 commit comments

Comments
 (0)