Skip to content

Commit 3543ad2

Browse files
authored
Merge branch 'develop' into poisson_stdev
Signed-off-by: Philipp Burckhardt <[email protected]>
2 parents 86a34e3 + b98e338 commit 3543ad2

File tree

24,297 files changed

+1402260
-385982
lines changed

Some content is hidden

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

24,297 files changed

+1402260
-385982
lines changed

.editorconfig

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ indent_style = tab
8686
[*.{f,f.txt}]
8787
indent_style = space
8888
indent_size = 2
89-
insert_final_newline = false
9089

9190
# Set properties for shell files:
9291
[*.{sh,sh.txt}]

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@ body:
117117
options:
118118
- label: Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
119119
required: true
120-
- label: Searched for existing issues and pull requests.
120+
- label: Searched for existing issues and pull requests.
121121
required: true

.github/ISSUE_TEMPLATE/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
contact_links:
2020
- name: 👩‍🏫 Frequently Asked Questions
21-
url: https://github.com/stdlib-js/stdlib/blob/develop/FAQ.md
21+
url: https://github.com/stdlib-js/stdlib/blob/develop/FAQ.md
2222
about: Consult the FAQ in case we have already answered your question there.
2323
- name: 💬 Question
24-
url: https://gitter.im/stdlib-js/stdlib
24+
url: https://gitter.im/stdlib-js/stdlib
2525
about: Got a (non-bug related) question we haven't already answered? Ask us on Gitter! 🤗
2626
- name: 👏 Support Us
2727
url: https://github.com/stdlib-js/stdlib/blob/develop/docs/support_the_project.md

.github/labeler.yml

+4
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ REPL:
3535
Statistics:
3636
- changed-files:
3737
- any-glob-to-all-files: '**/stats/**/*'
38+
39+
Tools:
40+
- changed-files:
41+
- any-glob-to-all-files: '**/_tools/**/*'

.github/workflows/autoclose.yml

+71-34
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ jobs:
3737
# Only run this job if the pull request has a specific label:
3838
if: "${{ github.event.label.name == 'autoclose: EditorConfig' }}"
3939

40-
# Define job permissions:
41-
permissions:
42-
contents: read
43-
pull-requests: write
44-
4540
# Define the type of virtual host machine:
4641
runs-on: ubuntu-latest
4742

@@ -52,13 +47,13 @@ jobs:
5247
- name: 'Close pull request'
5348
run: gh pr close "$NUMBER" --comment "$BODY"
5449
env:
55-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
50+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
5651
GH_REPO: ${{ github.repository }}
5752
NUMBER: ${{ github.event.pull_request.number }}
5853
BODY: |
5954
Thank you for working on this pull request. However, we cannot accept your contribution as this pull request does not follow our [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md).
6055
61-
Per the guidelines outlined in our [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md), you should download and setup [EditorConfig](http://editorconfig.org/) to ensure that files are automatically configured to use expected indentation and line endings.
56+
Per the guidelines outlined in our [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md), you should download and setup [EditorConfig](http://editorconfig.org/) to ensure that files are automatically configured to use expected indentation and line endings.
6257
6358
If you would prefer to avoid manual setup, you could also consider using a pre-configured [development container](https://github.com/stdlib-js/stdlib/tree/develop/.devcontainer) for use locally or in GitHub Codespaces.
6459
@@ -73,11 +68,6 @@ jobs:
7368
# Only run this job if the pull request has a specific label:
7469
if: "${{ github.event.label.name == 'autoclose: Contributor Guidelines' }}"
7570

76-
# Define job permissions:
77-
permissions:
78-
contents: read
79-
pull-requests: write
80-
8171
# Define the type of virtual host machine:
8272
runs-on: ubuntu-latest
8373

@@ -88,13 +78,13 @@ jobs:
8878
- name: 'Close pull request'
8979
run: gh pr close "$NUMBER" --comment "$BODY"
9080
env:
91-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
81+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
9282
GH_REPO: ${{ github.repository }}
9383
NUMBER: ${{ github.event.pull_request.number }}
9484
BODY: |
9585
Thank you for working on this pull request. However, we cannot accept your contribution as this pull request does not follow our [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md).
9686
97-
Per the guidelines outlined in our [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md), you should have setup your local development environment such that automated development processes for linting, license verification, and unit testing can run prior to authoring commits and pushing changes. We encourage you to refer to that guide **before** continuing to work on this pull request.
87+
Per the guidelines outlined in our [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md), you should have setup your local development environment such that automated development processes for linting, license verification, and unit testing can run prior to authoring commits and pushing changes. We encourage you to refer to that guide **before** continuing to work on this pull request.
9888
9989
If you would prefer to avoid manual setup, you could also consider using a pre-configured [development container](https://github.com/stdlib-js/stdlib/tree/develop/.devcontainer) for use locally or in GitHub Codespaces.
10090
@@ -109,11 +99,6 @@ jobs:
10999
# Only run this job if the pull request has a specific label:
110100
if: "${{ github.event.label.name == 'autoclose: Project Conventions' }}"
111101

112-
# Define job permissions:
113-
permissions:
114-
contents: read
115-
pull-requests: write
116-
117102
# Define the type of virtual host machine:
118103
runs-on: ubuntu-latest
119104

@@ -124,7 +109,7 @@ jobs:
124109
- name: 'Close pull request'
125110
run: gh pr close "$NUMBER" --comment "$BODY"
126111
env:
127-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
112+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
128113
GH_REPO: ${{ github.repository }}
129114
NUMBER: ${{ github.event.pull_request.number }}
130115
BODY: |
@@ -149,11 +134,6 @@ jobs:
149134
# Only run this job if the pull request has a specific label:
150135
if: "${{ github.event.label.name == 'autoclose: Spam' }}"
151136

152-
# Define job permissions:
153-
permissions:
154-
contents: read
155-
pull-requests: write
156-
157137
# Define the type of virtual host machine:
158138
runs-on: ubuntu-latest
159139

@@ -164,7 +144,7 @@ jobs:
164144
- name: 'Close pull request'
165145
run: gh pr close "$NUMBER" --comment "$BODY"
166146
env:
167-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
147+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
168148
GH_REPO: ${{ github.repository }}
169149
NUMBER: ${{ github.event.pull_request.number }}
170150
BODY: |
@@ -176,7 +156,7 @@ jobs:
176156
- name: 'Lock conversation'
177157
run: gh pr lock "$NUMBER" --reason spam
178158
env:
179-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
159+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
180160
GH_REPO: ${{ github.repository }}
181161
NUMBER: ${{ github.event.pull_request.number }}
182162

@@ -189,12 +169,6 @@ jobs:
189169
# Only run this job if the pull request has a specific label:
190170
if: "${{ github.event.label.name == 'autoclose: Stale' }}"
191171

192-
# Define job permissions:
193-
permissions:
194-
contents: read
195-
issues: write
196-
pull-requests: write
197-
198172
# Define the type of virtual host machine:
199173
runs-on: ubuntu-latest
200174

@@ -204,10 +178,73 @@ jobs:
204178
- name: 'Close pull request'
205179
run: gh pr close "$NUMBER" --comment "$BODY"
206180
env:
207-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
181+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
208182
GH_REPO: ${{ github.repository }}
209183
NUMBER: ${{ github.event.pull_request.number }}
210184
BODY: |
211185
This pull request has been automatically closed because it has been inactive for an extended period after changes were requested. If you still wish to pursue this contribution, feel free to reopen the pull request or submit a new one.
212186
213187
We appreciate your interest in contributing to stdlib!
188+
189+
# Define a job which closes a pull request if a PR has an inappropriate Git history:
190+
git_history:
191+
192+
# Define job name:
193+
name: 'Check for Git History label'
194+
195+
# Only run this job if the pull request has a specific label:
196+
if: "${{ github.event.label.name == 'autoclose: Git History' }}"
197+
198+
# Define the type of virtual host machine:
199+
runs-on: ubuntu-latest
200+
201+
# Define the sequence of job steps:
202+
steps:
203+
204+
# Close the pull request:
205+
- name: 'Close pull request'
206+
run: gh pr close "$NUMBER" --comment "$BODY"
207+
env:
208+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
209+
GH_REPO: ${{ github.repository }}
210+
NUMBER: ${{ github.event.pull_request.number }}
211+
BODY: |
212+
Thank you for working on this pull request. However, we cannot accept your contribution due to Git history issues.
213+
214+
Some common issues include:
215+
216+
- Merge conflicts
217+
- Inappropriate commit messages
218+
- Unrelated commits
219+
- Including changes from merged branches that weren't intended for this PR
220+
221+
We recommend opening a new pull request with only the intended changes.
222+
223+
Thank you for your interest in stdlib, and we look forward to your future contributions.
224+
225+
# Define a job which closes a pull request if proposed changes duplicate already included changes:
226+
already_resolved:
227+
228+
# Define job name:
229+
name: 'Check for already resolved label'
230+
231+
# Only run this job if the pull request has a specific label:
232+
if: "${{ github.event.label.name == 'autoclose: Already Resolved' }}"
233+
234+
# Define the type of virtual host machine:
235+
runs-on: ubuntu-latest
236+
237+
# Define the sequence of job steps:
238+
steps:
239+
240+
# Close the pull request:
241+
- name: 'Close pull request'
242+
run: gh pr close "$NUMBER" --comment "$BODY"
243+
env:
244+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
245+
GH_REPO: ${{ github.repository }}
246+
NUMBER: ${{ github.event.pull_request.number }}
247+
BODY: |
248+
Thank you for working on this pull request. However, we cannot accept your contribution as the issue this pull request seeks to resolve has already been addressed in a different pull request or commit.
249+
250+
Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2025 The Stdlib Authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#/
18+
19+
# Workflow name:
20+
name: check_commit_metadata
21+
22+
# Workflow triggers:
23+
on:
24+
# Trigger on pull request events:
25+
pull_request_target:
26+
types:
27+
- opened
28+
29+
# Global permissions:
30+
permissions:
31+
# Allow read-only access to the repository contents:
32+
contents: read
33+
34+
# Workflow jobs:
35+
jobs:
36+
37+
# Define a job for checking the commit metadata for whether local development is properly setup...
38+
check_commit_metadata:
39+
40+
# Define a display name:
41+
name: 'Check Commit Metadata'
42+
43+
# Define the type of virtual host machine:
44+
runs-on: ubuntu-latest
45+
46+
# Temporarily disable the entire workflow:
47+
if: false
48+
49+
# Define the sequence of job steps...
50+
steps:
51+
# Checkout the repository:
52+
- name: 'Checkout repository'
53+
# Pin action to full length commit SHA
54+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
55+
with:
56+
# Ensure we have access to the scripts directory:
57+
sparse-checkout: |
58+
.github/workflows/scripts
59+
sparse-checkout-cone-mode: false
60+
timeout-minutes: 10
61+
62+
# Extract commit metadata from commit messages as JSON:
63+
- name: 'Extract commit metadata'
64+
id: extract-metadata
65+
# Pin action to full length commit SHA
66+
uses: stdlib-js/metadata-action@3ccf68f24c51ae23470319e8e5619d539df8212b # v3.0.0
67+
68+
# Check commit metadata:
69+
- name: 'Check commit metadata'
70+
env:
71+
PR_NUMBER: ${{ github.event.pull_request.number }}
72+
COMMIT_METADATA: ${{ steps.extract-metadata.outputs.metadata }}
73+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
74+
run: |
75+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_commit_metadata" $PR_NUMBER $COMMIT_METADATA

.github/workflows/check_contributing_guidelines_acceptance.yml

100755100644
+7-13
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ on:
4343
types:
4444
- opened
4545
- reopened
46+
- edited
4647

4748
# Global permissions:
4849
permissions:
4950
# Allow read-only access to the repository contents:
5051
contents: read
5152

52-
# Allow write access to pull requests:
53-
pull-requests: write
54-
5553
# Workflow jobs:
5654
jobs:
5755

@@ -72,22 +70,18 @@ jobs:
7270
# Checkout the repository:
7371
- name: 'Checkout repository'
7472
# Pin action to full length commit SHA
75-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
73+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7674
with:
77-
# Specify whether to remove untracked files before checking out the repository:
78-
clean: true
79-
80-
# Limit clone depth to the most recent commit:
81-
fetch-depth: 1
82-
83-
# Specify whether to download Git-LFS files:
84-
lfs: false
75+
# Ensure we have access to the scripts directory:
76+
sparse-checkout: |
77+
.github/workflows/scripts
78+
sparse-checkout-cone-mode: false
8579
timeout-minutes: 10
8680

8781
# Check contributing guidelines acceptance:
8882
- name: 'Check contributing guidelines acceptance'
8983
env:
90-
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
84+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
9185
PR_NUMBER: ${{ github.event.pull_request.number || inputs.pull_request_number }}
9286
run: |
9387
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_contributing_guidelines_acceptance" $PR_NUMBER

0 commit comments

Comments
 (0)