Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
c16a415
Try use mne-tools action [ci skip]
tsbinns Jun 20, 2026
5def57d
Try to get it to show [skip azp][skip circle]
tsbinns Jun 20, 2026
f0c69bb
Try commit changes [ci skip]
tsbinns Jun 20, 2026
787941b
Try commit changes [ci skip]
tsbinns Jun 20, 2026
37a8300
Just look for diff [ci skip]
tsbinns Jun 20, 2026
7e3260c
Add extended metadata
tsbinns Jun 27, 2026
eb59393
Add other tool calls
tsbinns Jun 27, 2026
e581e39
[skip azp][skip circle]
tsbinns Jun 27, 2026
422eda7
[skip azp][skip circle]
tsbinns Jun 27, 2026
51bce86
[skip azp][skip circle]
tsbinns Jun 27, 2026
edcede6
Update names [skip azp][skip circle]
tsbinns Jun 27, 2026
32177d6
[skip azp][skip circle]
tsbinns Jun 27, 2026
66f3e19
[skip azp][skip circle]
tsbinns Jun 27, 2026
f1ba9df
Update extended metadata [skip azp][skip circle]
tsbinns Jun 27, 2026
7d0656a
[skip azp][skip circle]
tsbinns Jun 27, 2026
ffdc9d0
[skip azp][skip circle]
tsbinns Jun 27, 2026
e099076
[skip azp][skip circle]
tsbinns Jun 27, 2026
7f5a3a4
Update yamllint rules
tsbinns Jun 27, 2026
9ab0346
[skip azp][skip circle]
tsbinns Jun 27, 2026
16e36b2
Add jobs to autofix
tsbinns Jun 30, 2026
98283d0
[skip azp][skip circle]
tsbinns Jun 30, 2026
7f3e9c9
Merge branch 'main' into test_tools
tsbinns Jun 30, 2026
2a28a6e
[skip azp][skip circle]
tsbinns Jun 30, 2026
a2ca5a6
[autofix.ci] apply automated fixes
autofix-ci[bot] Jun 30, 2026
852cf8e
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Jun 30, 2026
6e1d389
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Jun 30, 2026
e3b9265
[skip azp][skip circle]
tsbinns Jun 30, 2026
ef0072b
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jun 30, 2026
5c11f82
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 30, 2026
68534d3
[autofix.ci] apply automated fixes
autofix-ci[bot] Jun 30, 2026
22eb0b1
Remove env update from pre-commit [skip azp][skip circle]
tsbinns Jun 30, 2026
e7d1b0a
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jun 30, 2026
99b313d
[autofix.ci] apply automated fixes
autofix-ci[bot] Jun 30, 2026
0da3a47
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Jun 30, 2026
739727e
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Jun 30, 2026
7968dbf
[skip azp][skip circle]
tsbinns Jul 1, 2026
09a38fe
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 1, 2026
74b4f83
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Jul 1, 2026
8223578
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Jul 1, 2026
7705b4b
Test env checking [skip azp][skip circle]
tsbinns Jul 1, 2026
97f5da6
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jul 1, 2026
4ca358d
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 1, 2026
c28dae1
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Jul 1, 2026
ef67a87
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Jul 1, 2026
4eaf83e
Test env checking [skip azp][skip circle]
tsbinns Jul 1, 2026
d483288
Reduce codemeta noise [skip azp][skip circle]
tsbinns Jul 1, 2026
eab3c5c
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jul 1, 2026
e74215c
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 1, 2026
02565da
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Jul 1, 2026
caafdb0
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Jul 1, 2026
e15d5a0
Reduce citation noise [skip azp][skip circle]
tsbinns Jul 1, 2026
65a569d
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jul 1, 2026
dd29a24
[skip azp][skip circle]
tsbinns Jul 1, 2026
b8ff85a
[skip azp][skip circle]
tsbinns Jul 1, 2026
f906620
[skip azp][skip circle]
tsbinns Jul 1, 2026
88d2b3c
Use env check action in old unit tests [skip azp][skip circle]
tsbinns Jul 1, 2026
314fbf8
Test new mne-tools layout [skip azp][skip circle]
tsbinns Jul 2, 2026
741df2e
Test new mne-tools layout [skip azp][skip circle]
tsbinns Jul 2, 2026
117b2db
Test new mne-tools layout [skip azp][skip circle]
tsbinns Jul 2, 2026
2ecdf87
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 2, 2026
3b49fef
Replace tools with actions [skip azp][skip circle]
tsbinns Jul 2, 2026
53f9e0b
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jul 2, 2026
de91d46
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 2, 2026
dabb498
Test actions in SPEC0 workflow [skip azp][skip circle]
tsbinns Jul 2, 2026
08f720c
Test actions in SPEC0 workflow [skip azp][skip circle]
tsbinns Jul 2, 2026
e397b64
Test actions in SPEC0 workflow [skip azp][skip circle]
tsbinns Jul 2, 2026
6324006
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 2, 2026
c6c43e4
Test actions in SPEC0 workflow [skip azp][skip circle]
tsbinns Jul 2, 2026
62acd9b
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jul 2, 2026
48c83fb
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 2, 2026
f1b085b
Test actions in SPEC0 workflow [skip azp][skip circle]
tsbinns Jul 3, 2026
7254713
Merge branch 'test_tools' of https://github.com/tsbinns/mne-python in…
tsbinns Jul 3, 2026
969b0fa
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 3, 2026
86dbe19
[skip azp][skip circle]
tsbinns Jul 3, 2026
9415f79
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 3, 2026
c394071
Remove pre-commit call from SPEC0 workflow [skip azp][skip circle]
tsbinns Jul 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .extended_metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package_name: MNE-Python
date_created: '2010-12-26'
date_published: '2014-08-04'
application_category: Neuroscience
code_doi: 10.5281/zenodo.592483
compound_surnames:
- García Alanis
- van Vliet
- De Santis
- Dupré la Tour
- de la Torre
- de Jong
- de Montalivet
- van den Bosch
- Van den Bossche
- Van Der Donckt
- van der Meer
- van Harmelen
- Visconti di Oleggio Castello
- van Es
preferred_citation:
title: MEG and EEG Data Analysis with MNE-Python
journal: Frontiers in Neuroscience
type: article
year: 2013
volume: 7
issue: 267
start: 1
end: 13
doi: 10.3389/fnins.2013.00267
authors:
- family-names: Gramfort
given-names: Alexandre
- family-names: Luessi
given-names: Martin
- family-names: Larson
given-names: Eric
- family-names: Engemann
given-names: Denis A.
- family-names: Strohmeier
given-names: Daniel
- family-names: Brodbeck
given-names: Christian
- family-names: Goj
given-names: Roman
- family-names: Jas
given-names: Mainak
- family-names: Brooks
given-names: Teon
- family-names: Parkkonen
given-names: Lauri
- family-names: Hämäläinen
given-names: Matti S.
23 changes: 23 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,27 @@ jobs:
- run: pip install --upgrade towncrier pygithub gitpython numpy
- run: python ./.github/actions/rename_towncrier/rename_towncrier.py
- run: python ./tools/dev/ensure_headers.py
- name: Sync dependencies to README
uses: tsbinns/mne-tools/actions/sync-dependencies-to-readme@add_tools
with:
project-root: ${{ github.workspace }}
ignore-upper-pins: numpy
- name: Sync dependencies to environment file
uses: tsbinns/mne-tools/actions/sync-dependencies-to-environment-file@add_tools
with:
project-root: ${{ github.workspace }}
extras: full,full-no-qt,hdf5
additional-dependencies: pip,mamba,conda,nomkl,noqt5
pip-dependencies: pymef
requirements-overrides: PySide6==6.10.2,vtk==9.6.0
# - name: Generate citation
# uses: tsbinns/mne-tools/actions/generate-citation@add_tools
# with:
# project-root: ${{ github.workspace }}
# release-version: "1.13.0"
- name: Generate codemeta
uses: tsbinns/mne-tools/actions/generate-codemeta@add_tools
with:
project-root: ${{ github.workspace }}
release-version: "1.13.0"
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a
33 changes: 33 additions & 0 deletions .github/workflows/check_environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check 'old' environment

on: # yamllint disable-line rule:truthy
pull_request:

jobs:
check-environment:
permissions:
contents: write
name: Check 'old' environment
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
env:
MNE_CI_KIND: 'old'
steps:
- uses: actions/checkout@v6.0.3
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v8.2.0
with:
version: ">=0.9"
activate-environment: true
cache-dependency-glob: |
**/pylock.ci-old.toml
python-version: '3.10'
- run: bash ./tools/github_actions_dependencies.sh
- name: Run MNE-Tools action
uses: tsbinns/mne-tools/actions/check-environment@add_tools
with:
project-root: ${{ github.workspace }}
groups: lockfile_extras
24 changes: 24 additions & 0 deletions .github/workflows/check_lockfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check 'old' lockfile

on: # yamllint disable-line rule:truthy
pull_request:

jobs:
check-lockfile:
permissions:
contents: write
name: Check 'old' lockfile
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v6.0.3
with:
persist-credentials: false
- name: Run MNE-Tools action
uses: tsbinns/mne-tools/actions/check-lockfile@add_tools
with:
project-root: ${{ github.workspace }}
lockfile-path: tools/pylock.ci-old.toml
groups: lockfile_extras
47 changes: 23 additions & 24 deletions .github/workflows/spec_zero.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: SPEC0

on: # yamllint disable-line rule:truthy
pull_request:
schedule:
- cron: '0 0 * * 1' # At 00:00 every Monday
workflow_dispatch:
Expand Down Expand Up @@ -43,44 +44,42 @@ jobs:
detached: true
- uses: astral-sh/setup-uv@v8.2.0
with:
version: ">=0.9"
version: ">=0.9,<=0.9.26"
activate-environment: true
python-version: "3.12"
- name: Install dependencies
run: uv pip install -e . packaging requests tomlkit
- name: Update tracked dependencies
run: python ./tools/dev/spec_zero_update_versions.py
- name: Sync updated dependencies to README
run: python tools/sync_dependencies.py
uses: tsbinns/mne-tools/actions/sync-dependencies-to-readme@add_tools
with:
project-root: ${{ github.workspace }}
ignore-upper-pins: numpy
- name: Sync updated dependencies to environment file
uses: tsbinns/mne-tools/actions/sync-dependencies-to-environment-file@add_tools
with:
project-root: ${{ github.workspace }}
extras: full,full-no-qt,hdf5
additional-dependencies: pip,mamba,conda,nomkl,noqt5
pip-dependencies: pymef
requirements-overrides: PySide6==6.10.2,vtk==9.6.0
- name: Create lockfile for old CI
# uv pip compile requires setting the python version explicitly in the command :(
run: |
uv pip compile pyproject.toml --python "3.10" --python-platform "x86_64-unknown-linux-gnu" --group test --group lockfile_extras --resolution lowest-direct --format pylock.toml --output-file tools/pylock.ci-old.toml
python tools/github_actions_check_old_lockfile.py
run: uv pip compile pyproject.toml --python "3.10" --python-platform "x86_64-unknown-linux-gnu" --group test --group lockfile_extras --resolution lowest-direct --format pylock.toml --output-file tools/pylock.ci-old.toml
- name: Validate lockfile for old CI
uses: tsbinns/mne-tools/actions/check-lockfile@add_tools
with:
project-root: ${{ github.workspace }}
lockfile-path: tools/pylock.ci-old.toml
groups: lockfile_extras
- name: check if files changed
run: |
git diff && git status --porcelain
if [[ $(git status --porcelain) ]]; then
echo "dirty=true" >> $GITHUB_OUTPUT
fi
id: status
- name: Run pre-commit hooks to update other files
run: |
uv pip install pre-commit
pre-commit run --all || true
if: steps.status.outputs.dirty == 'true'
- name: Create PR
run: |
set -xeo pipefail
git diff
git config --global user.email "50266005+mne-bot@users.noreply.github.com"
git config --global user.name "mne[bot]"
git checkout -b spec_zero
if [ -f doc/changes/dev/dependency.rst ]; then
git add doc/changes/dev/dependency.rst # one new file, others changed
fi
git commit -am "mne[bot]: Update dependency specifiers"
git push origin spec_zero
PR_NUM=$(gh pr create --base main --head spec_zero --title "MAINT: Update dependency specifiers" --body "Created by spec_zero [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }}). <br> <br> *Adjustments may need to be made to shims in \`mne/fixes.py\` and elswhere in this or another PR. \`make -C tools/dev dep\` is a good starting point for finding potential updates.*")
echo "Opened https://github.com/mne-tools/mne-python/pull/${PR_NUM}" >> $GITHUB_STEP_SUMMARY
- name: Show diff
run: git diff -- ':!pylock.ci-old.toml'
if: steps.status.outputs.dirty == 'true'
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ jobs:
- run: bash ./tools/github_actions_verify_python.sh "${{ matrix.python }}"
- run: bash ./tools/github_actions_dependencies.sh
timeout-minutes: 10
- run: python ./tools/github_actions_check_old_env.py
- name: Run MNE-Tools action
uses: tsbinns/mne-tools/actions/check-environment@add_tools
with:
project-root: ${{ github.workspace }}
groups: lockfile_extras
if: matrix.kind == 'old'
# Minimal commands on Linux (macOS stalls)
- uses: actions/cache@v5.0.5
Expand Down
9 changes: 0 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ repos:
- id: toml-sort-fix
files: pyproject.toml

# dependencies
- repo: local
hooks:
- id: update-env-file
name: Copy dependency changes from pyproject.toml to environment.yml
language: python
entry: ./tools/hooks/update_environment_file.py
files: '^(pyproject.toml|tools/hooks/update_environment_file.py)$'

# zizmor
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.26.1
Expand Down
2 changes: 2 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ rules:
document-start: disable
new-lines:
type: platform
indentation:
indent-sequences: consistent
Loading
Loading