Skip to content

Commit 6d2f653

Browse files
authored
Merge branch 'main' into all-contributors/add-lucascolley
2 parents 6d85692 + 0be8d09 commit 6d2f653

Some content is hidden

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

49 files changed

+14449
-11876
lines changed

.all-contributorsrc

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"profile": "https://github.com/mdhaber",
4141
"contributions": [
4242
"code",
43-
"ideas"
43+
"ideas",
44+
"test"
4445
]
4546
},
4647
{
@@ -50,7 +51,8 @@
5051
"profile": "https://github.com/j-bowhay",
5152
"contributions": [
5253
"code",
53-
"review"
54+
"review",
55+
"tool"
5456
]
5557
},
5658
{
@@ -103,7 +105,10 @@
103105
"tool",
104106
"test",
105107
"example",
106-
"bug"
108+
"bug",
109+
"ideas",
110+
"review",
111+
"maintenance"
107112
]
108113
},
109114
{
@@ -227,6 +232,78 @@
227232
"code",
228233
"test"
229234
]
235+
},
236+
{
237+
"login": "lithomas1",
238+
"name": "Thomas Li",
239+
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
240+
"profile": "https://github.com/lithomas1",
241+
"contributions": [
242+
"bug",
243+
"tool"
244+
]
245+
},
246+
{
247+
"login": "pearu",
248+
"name": "Pearu Peterson",
249+
"avatar_url": "https://avatars.githubusercontent.com/u/402156?v=4",
250+
"profile": "https://github.com/pearu",
251+
"contributions": [
252+
"review"
253+
]
254+
},
255+
{
256+
"login": "paddyroddy",
257+
"name": "Patrick J. Roddy",
258+
"avatar_url": "https://avatars.githubusercontent.com/u/15052188?v=4",
259+
"profile": "https://paddyroddy.github.io/",
260+
"contributions": [
261+
"code",
262+
"doc",
263+
"example",
264+
"test"
265+
]
266+
},
267+
{
268+
"login": "amacati",
269+
"name": "Martin Schuck",
270+
"avatar_url": "https://avatars.githubusercontent.com/u/57562633?v=4",
271+
"profile": "https://amacati.github.io/",
272+
"contributions": [
273+
"ideas"
274+
]
275+
},
276+
{
277+
"login": "Enderdead",
278+
"name": "Gauthier-Clerc François",
279+
"avatar_url": "https://avatars.githubusercontent.com/u/22777836?v=4",
280+
"profile": "https://github.com/Enderdead",
281+
"contributions": [
282+
"code",
283+
"test"
284+
]
285+
},
286+
{
287+
"login": "adriagarp",
288+
"name": "Adrián García Pitarch",
289+
"avatar_url": "https://avatars.githubusercontent.com/u/96059447?v=4",
290+
"profile": "https://github.com/adriagarp",
291+
"contributions": [
292+
"code",
293+
"test"
294+
]
295+
},
296+
{
297+
"login": "cakedev0",
298+
"name": "Arthur Lacote",
299+
"avatar_url": "https://avatars.githubusercontent.com/u/25986961?v=4",
300+
"profile": "https://github.com/cakedev0",
301+
"contributions": [
302+
"code",
303+
"doc",
304+
"ideas",
305+
"test"
306+
]
230307
}
231308
]
232309
}

.dprint.jsonc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"json": {
3+
"lineWidth": 100,
4+
"array.preferSingleLine": true,
5+
},
6+
"markdown": {
7+
"lineWidth": 200,
8+
"emphasisKind": "asterisks",
9+
},
10+
"toml": {
11+
"lineWidth": 100,
12+
},
13+
"yaml": {
14+
"printWidth": 100,
15+
"formatComments": true,
16+
"braceSpacing": false,
17+
},
18+
"excludes": ["**/*-lock.json", "**/*.lock", "**/node_modules/", "dist/"],
19+
"plugins": [
20+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
21+
"https://plugins.dprint.dev/json-0.20.0.wasm",
22+
"https://plugins.dprint.dev/markdown-0.19.0.wasm",
23+
"https://plugins.dprint.dev/toml-0.7.0.wasm",
24+
],
25+
}

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!--
2+
Thanks for contributing a pull request!
3+
4+
Please check out the contributor guidance at https://data-apis.org/array-api-extra/contributing.html.
5+
-->

.github/workflows/cd.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CD
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
pull_request:
@@ -14,11 +17,11 @@ jobs:
1417
dist:
1518
runs-on: ubuntu-latest
1619
steps:
17-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1821
with:
1922
fetch-depth: 0
2023

21-
- uses: hynek/build-and-inspect-python-package@v2
24+
- uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0
2225

2326
publish:
2427
needs: [dist]
@@ -31,14 +34,14 @@ jobs:
3134
if: github.event_name == 'release' && github.event.action == 'published'
3235

3336
steps:
34-
- uses: actions/download-artifact@v4
37+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
3538
with:
3639
name: Packages
3740
path: dist
3841

3942
- name: Generate artifact attestation for sdist and wheel
40-
uses: actions/attest-build-provenance@v2.2.0
43+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
4144
with:
4245
subject-path: "dist/*"
4346

44-
- uses: pypa/gh-action-pypi-publish@release/v1
47+
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

.github/workflows/ci.yml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CI
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
pull_request:
@@ -17,55 +20,60 @@ env:
1720
FORCE_COLOR: 3
1821

1922
jobs:
20-
pre-commit-and-lint:
21-
name: Format
23+
lint:
24+
name: Lint
2225
runs-on: ubuntu-latest
2326
steps:
24-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2528
with:
2629
fetch-depth: 0
27-
- uses: actions/setup-python@v5
28-
with:
29-
python-version: "3.x"
30-
- uses: pre-commit/[email protected]
31-
with:
32-
extra_args: --hook-stage manual --all-files
33-
- uses: prefix-dev/[email protected]
30+
31+
- uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
3432
with:
35-
pixi-version: v0.40.3
33+
pixi-version: v0.50.2
3634
cache: true
3735
environments: lint
38-
- name: Run Pylint, Mypy & Pyright
39-
run: |
40-
pixi run -e lint pylint
41-
pixi run -e lint mypy
42-
pixi run -e lint pyright
36+
37+
- name: Lint (if this step fails, please 'pixi run lint' locally and push the changes)
38+
run: pixi run -e lint lint
4339

4440
checks:
45-
name: Check ${{ matrix.environment }}
41+
name: Test ${{ matrix.environment }}
4642
runs-on: ${{ matrix.runs-on }}
47-
needs: [pre-commit-and-lint]
4843
strategy:
4944
fail-fast: false
5045
matrix:
51-
environment: [tests-py310, tests-py313, tests-backends]
46+
environment:
47+
- tests-py310
48+
- tests-py313
49+
- tests-numpy1
50+
- tests-backends
51+
- tests-backends-py310
52+
- tests-nogil
5253
runs-on: [ubuntu-latest]
5354

5455
steps:
55-
- uses: actions/checkout@v4
56+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5657
with:
5758
fetch-depth: 0
5859

59-
- uses: prefix-dev/setup-pixi@v0.8.3
60+
- uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
6061
with:
61-
pixi-version: v0.40.3
62+
pixi-version: v0.50.2
6263
cache: true
6364
environments: ${{ matrix.environment }}
6465

6566
- name: Test package
67+
# Save some time; also at the moment of writing coverage crashes on python 3.13t
68+
if: ${{ matrix.environment != 'tests-nogil' }}
6669
run: pixi run -e ${{ matrix.environment }} tests-ci
6770

71+
- name: Test free-threading
72+
if: ${{ matrix.environment == 'tests-nogil' }}
73+
run: pixi run -e tests-nogil tests --parallel-threads=4
74+
6875
- name: Upload coverage report
69-
uses: codecov/[email protected]
76+
if: ${{ matrix.environment != 'tests-nogil' }}
77+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
7078
with:
7179
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/docs-build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
name: Docs Build
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
jobs:
69
docs-build:
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v4
10-
- uses: prefix-dev/[email protected]
12+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
13+
14+
- uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
1115
with:
12-
pixi-version: v0.40.3
16+
pixi-version: v0.50.2
1317
cache: true
1418
environments: docs
19+
1520
- name: Build Docs
1621
run: pixi run -e docs docs
22+
1723
- name: Upload Artifact
18-
uses: actions/upload-artifact@v4
24+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
1925
with:
2026
name: docs-build
2127
path: docs/build/

.github/workflows/docs-deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Docs Deploy
22

3+
permissions:
4+
contents: write # needed for the deploy step
5+
36
on:
47
workflow_run:
58
workflows: ["Docs Build"]
@@ -14,9 +17,10 @@ jobs:
1417
environment:
1518
name: docs-deploy
1619
steps:
17-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
1822
- name: Download Artifact
19-
uses: dawidd6/action-download-artifact@v8
23+
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
2024
with:
2125
workflow: docs-build.yml
2226
name: docs-build
@@ -26,7 +30,7 @@ jobs:
2630
# See
2731
# https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-
2832
- name: Deploy
29-
uses: JamesIves/github-pages-deploy-action@v4
33+
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
3034
with:
3135
folder: docs/build/
3236
ssh-key: ${{ secrets.DEPLOY_KEY }}

0 commit comments

Comments
 (0)