-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: Document code contributors on website (#12774)
- Loading branch information
Showing
23 changed files
with
706 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
e81ec528a42ac687f3d961ed5cf8e25f236925b0 # black | ||
12395f9d9cf6ea3c72b225b62e052dd0d17d9889 # YAML indentation | ||
d6d2f8c6a2ed4a0b27357da9ddf8e0cd14931b59 # isort | ||
e7dd1588013179013a50d3f6b8e8f9ae0a185783 # ruff format | ||
e39995d9be6fc831c7a4a59f09b7a7c0a41ae315 # percent formatting | ||
940ac9553ce42c15b4c16ecd013824ca3ea7244a # whitespace | ||
1c5b39ff1d99bbcb2fc0e0071a989b3f3845ff30 # ruff UP028 | ||
# PR number should follow the commit number so that our code credit | ||
# can parse this file correctly: | ||
d71e497dcf6f98e19eb81e82e641404a71d2d663 # 1420, split up viz.py | ||
203a96cbba2732d2e349a8f96065e74bbfd2a53b # 5862, split utils.py | ||
ff349f356edb04e1b5f0db13deda8d1a20aca351 # 6767, move around manual parts | ||
31a83063557fbd54d898f00f9527ffc547888395 # 10407, alphabetize docdict | ||
e81ec528a42ac687f3d961ed5cf8e25f236925b0 # 11667, black | ||
12395f9d9cf6ea3c72b225b62e052dd0d17d9889 # 11868, YAML indentation | ||
d6d2f8c6a2ed4a0b27357da9ddf8e0cd14931b59 # 12097, isort | ||
e7dd1588013179013a50d3f6b8e8f9ae0a185783 # 12261, ruff format | ||
940ac9553ce42c15b4c16ecd013824ca3ea7244a # 12533, whitespace | ||
e39995d9be6fc831c7a4a59f09b7a7c0a41ae315 # 12588, percent formatting | ||
1c5b39ff1d99bbcb2fc0e0071a989b3f3845ff30 # 12603, ruff UP028 | ||
b8b168088cb474f27833f5f9db9d60abe00dca83 # 12779, PR JSONs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Contributor credit | ||
|
||
on: # yamllint disable-line rule:truthy | ||
# Scheduled actions only run on the main repo branch, which is exactly what we want | ||
schedule: | ||
# TODO: After making sure it works in `main` for a while, switch to monthly | ||
# - cron: '0 0 1 * *' # first day of the month at midnight | ||
- cron: '0 0 * * *' # every day at midnight | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
update_credit: | ||
name: Update | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- run: pip install pygithub -e . | ||
- run: git checkout -b credit | ||
- run: python tools/dev/update_credit_json.py | ||
- run: python tools/dev/update_credit_rst.py | ||
- run: git add -f doc/sphinxext/prs/*.json | ||
- run: | | ||
git diff && git status --porcelain | ||
if [[ $(git status --porcelain) ]]; then | ||
echo "dirty=true" >> $GITHUB_OUTPUT | ||
fi | ||
id: status | ||
- name: Create PR | ||
run: | | ||
set -xeo pipefail | ||
git config --global user.email "114827586+autofix-ci[bot]@users.noreply.github.com" | ||
git config --global user.name "autofix-ci[bot]" | ||
git commit -am "MAINT: Update code credit" | ||
gh pr create -B main -H credit --title "MAINT: Update code credit" --body "Created by \"${{ github.workflow }}\" GitHub action." --label "no-changelog-entry-needed" | ||
if: steps.status.outputs.dirty == 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,7 @@ cover | |
|
||
.venv/ | ||
venv/ | ||
*.json | ||
/*.json | ||
!codemeta.json | ||
.hypothesis/ | ||
.ruff_cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/code_credit.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Code contributions are now measured using PRs and reported on the :ref:`contributors` | ||
page, by `Eric Larson`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
:orphan: | ||
|
||
.. _contributors: | ||
|
||
============ | ||
Contributors | ||
============ | ||
|
||
There are many different ways to contribute to MNE-Python! So far we only list | ||
code contributions below, but plan to add other metrics in the future. | ||
|
||
.. include:: ./code_credit.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"merge_commit_sha": "b8b168088cb474f27833f5f9db9d60abe00dca83", | ||
"authors": [ | ||
{ | ||
"n": "Eric Larson", | ||
"e": "[email protected]" | ||
} | ||
], | ||
"changes": { | ||
"doc/sphinxext/prs/1.json": { | ||
"a": 15, | ||
"d": 0 | ||
}, | ||
"doc/sphinxext/prs/3732.json": { | ||
"a": 15, | ||
"d": 0 | ||
} | ||
} | ||
} |
Oops, something went wrong.