From e34e43ed39f8749f1efd94bc030aa2d87d2e10a3 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 20 Dec 2023 15:33:31 -0500 Subject: [PATCH 01/19] WIP: Automate renaming of towncrier stubs [ci skip] --- doc/changes/devel/other.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changes/devel/other.rst diff --git a/doc/changes/devel/other.rst b/doc/changes/devel/other.rst new file mode 100644 index 00000000000..94890e1dfc4 --- /dev/null +++ b/doc/changes/devel/other.rst @@ -0,0 +1 @@ +Automate adding of PR number to towncrier stubs, by `Eric Larson`_. From f5066c37f05c804bec39f6d09490b2c323778e2d Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 13:59:52 -0500 Subject: [PATCH 02/19] WIP: Try --- .../rename_towncrier/rename_towncrier.py | 68 +++++++++++++++++++ .github/workflows/check_changelog.yml | 20 +++++- 2 files changed, 85 insertions(+), 3 deletions(-) create mode 100755 .github/actions/rename_towncrier/rename_towncrier.py diff --git a/.github/actions/rename_towncrier/rename_towncrier.py b/.github/actions/rename_towncrier/rename_towncrier.py new file mode 100755 index 00000000000..4fe6f556dba --- /dev/null +++ b/.github/actions/rename_towncrier/rename_towncrier.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python3 + +# Adapted from action-towncrier-changelog +import json +import os +import re +import subprocess +import sys +from pathlib import Path + +from github import Github +from tomllib import loads + +event_name = os.getenv('GITHUB_EVENT_NAME', 'pull_request') +if not event_name.startswith('pull_request'): + print(f'No-op for {event_name}') + sys.exit(0) +if 'GITHUB_EVENT_PATH' in os.environ: + with open(os.environ['GITHUB_EVENT_PATH'], encoding='utf-8') as fin: + event = json.load(fin) + pr_num = event['number'] + basereponame = event['pull_request']['base']['repo']['full_name'] + real = True +else: # local testing + pr_num = 12318 # added some towncrier files + basereponame = "mne-tools/mne-python" + real = False + +g = Github(os.environ.get('GITHUB_TOKEN')) +baserepo = g.get_repo(basereponame) + +# Grab config from upstream's default branch +toml_cfg = loads(Path("pyproject.toml").read_text("utf-8")) + +config = toml_cfg["tool"]["towncrier"] +pr = baserepo.get_pull(pr_num) +modified_files = [f.filename for f in pr.get_files()] + +# Get types from config +types = [ent["directory"] for ent in toml_cfg["tool"]["towncrier"]["type"]] +type_pipe = "|".join(types) + +# Get files that potentially match the types +directory = toml_cfg["tool"]["towncrier"]["directory"] +assert directory.endswith("/"), directory + +file_re = re.compile(rf"^{directory}({type_pipe})\.rst$") +found_stubs = [ + f for f in modified_files if file_re.match(f) +] +for stub in found_stubs: + fro = stub + to = file_re.sub(rf"{directory}{pr_num}.\1.rst", fro) + print(f"Renaming {fro} to {to}") + if real: + subprocess.check_call(["git", "mv", fro, to]) +else: + exit(0) +if real: + subprocess.check_call( + ["git", "commit", "-am", f"DOC: Rename towncrier file(s) for PR {pr_num}"] + ) + subprocess.check_call(["git", "push"]) + print( + "Pushed commit to GitHub, exiting with failing status to prevent further " + "checks" + ) + exit(1) # don't proceed with other checks diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index cf59c165258..f77e6580ba3 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -4,12 +4,26 @@ on: # yamllint disable-line rule:truthy pull_request: types: [opened, synchronize, labeled, unlabeled] +# https://joht.github.io/johtizen/build/2022/01/20/github-actions-push-into-repository.html#git-commit-within-a-pull-request#example-4 jobs: changelog_checker: name: Check towncrier entry in doc/changes/devel/ runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BOT_USERNAME: changelog-bot + GIT_COMMITTER_NAME: "MNE CI Bot" + GIT_COMMITTER_EMAIL: "username@users.noreply.github.com" + defaults: + run: + shell: bash -el {0} steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }} + - run: actions/setup-python@v5 + - run: | + pip install --upgrade towncrier pygithub + python ./.github/actions/rename_towncrier/rename_towncrier.py - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BOT_USERNAME: changelog-bot From 9b9ec28531e90851ba527a47a498045ab6e2d8ea Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:13:29 -0500 Subject: [PATCH 03/19] FIX: Maybe? --- .github/actions/rename_towncrier/rename_towncrier.py | 12 ------------ .github/workflows/check_changelog.yml | 11 ++++++++--- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/actions/rename_towncrier/rename_towncrier.py b/.github/actions/rename_towncrier/rename_towncrier.py index 4fe6f556dba..a6183998449 100755 --- a/.github/actions/rename_towncrier/rename_towncrier.py +++ b/.github/actions/rename_towncrier/rename_towncrier.py @@ -54,15 +54,3 @@ print(f"Renaming {fro} to {to}") if real: subprocess.check_call(["git", "mv", fro, to]) -else: - exit(0) -if real: - subprocess.check_call( - ["git", "commit", "-am", f"DOC: Rename towncrier file(s) for PR {pr_num}"] - ) - subprocess.check_call(["git", "push"]) - print( - "Pushed commit to GitHub, exiting with failing status to prevent further " - "checks" - ) - exit(1) # don't proceed with other checks diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index f77e6580ba3..8688bb86089 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -17,13 +17,18 @@ jobs: defaults: run: shell: bash -el {0} + permissions: + contents: write steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.ref }} - token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }} + ref: ${{ github.head_ref }} - run: actions/setup-python@v5 - run: | pip install --upgrade towncrier pygithub python ./.github/actions/rename_towncrier/rename_towncrier.py - - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed + - uses: stefanzweifel/git-auto-commit-action@v5 + id: commit-action + - run: exit 1 + if: steps.commit-action.outputs.changes_detected == 'false' + # - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed From a906470e7345fab51d2d8f9cd115e20207703c4c Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:14:55 -0500 Subject: [PATCH 04/19] FIX: More --- .github/workflows/check_changelog.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 8688bb86089..0d5bb2f881e 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -12,8 +12,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BOT_USERNAME: changelog-bot - GIT_COMMITTER_NAME: "MNE CI Bot" - GIT_COMMITTER_EMAIL: "username@users.noreply.github.com" defaults: run: shell: bash -el {0} @@ -22,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.head.ref }} - run: actions/setup-python@v5 - run: | pip install --upgrade towncrier pygithub From 5da587e62da78fc030af1201e07cbfc52e9a1f73 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:20:34 -0500 Subject: [PATCH 05/19] FIX: More --- .github/workflows/check_changelog.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 0d5bb2f881e..60793818cb5 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -9,9 +9,6 @@ jobs: changelog_checker: name: Check towncrier entry in doc/changes/devel/ runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BOT_USERNAME: changelog-bot defaults: run: shell: bash -el {0} @@ -27,6 +24,12 @@ jobs: python ./.github/actions/rename_towncrier/rename_towncrier.py - uses: stefanzweifel/git-auto-commit-action@v5 id: commit-action + with: + commit_message: "DOC: Update changelog entry to PR ${{ github.event.pull_request.number }}" - run: exit 1 if: steps.commit-action.outputs.changes_detected == 'false' # - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed + # with: + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # BOT_USERNAME: changelog-bot From cf9f7f33878664a261489770786ea1280276d8a3 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:24:08 -0500 Subject: [PATCH 06/19] FIX: Maybe the shell? --- .github/workflows/check_changelog.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 60793818cb5..24bda2b1a40 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -9,9 +9,6 @@ jobs: changelog_checker: name: Check towncrier entry in doc/changes/devel/ runs-on: ubuntu-latest - defaults: - run: - shell: bash -el {0} permissions: contents: write steps: @@ -20,6 +17,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} - run: actions/setup-python@v5 - run: | + set -eo pipefail pip install --upgrade towncrier pygithub python ./.github/actions/rename_towncrier/rename_towncrier.py - uses: stefanzweifel/git-auto-commit-action@v5 From 8be3433150b8cfc9a677cc6f1c84e04c6c62574d Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:26:02 -0500 Subject: [PATCH 07/19] FIX: See --- .github/workflows/check_changelog.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 24bda2b1a40..c615e5a7f1c 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -9,17 +9,15 @@ jobs: changelog_checker: name: Check towncrier entry in doc/changes/devel/ runs-on: ubuntu-latest - permissions: - contents: write + # permissions: + # contents: write steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.head_ref }} - run: actions/setup-python@v5 - - run: | - set -eo pipefail - pip install --upgrade towncrier pygithub - python ./.github/actions/rename_towncrier/rename_towncrier.py + - run: pip install --upgrade towncrier pygithub + - run: python ./.github/actions/rename_towncrier/rename_towncrier.py - uses: stefanzweifel/git-auto-commit-action@v5 id: commit-action with: From 539359a4f0cec3f64f483b524fdee5a8b8dfcb48 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:30:10 -0500 Subject: [PATCH 08/19] FIX: Maybe --- .github/workflows/check_changelog.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index c615e5a7f1c..5f6e67ebeb2 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -14,7 +14,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} - run: actions/setup-python@v5 - run: pip install --upgrade towncrier pygithub - run: python ./.github/actions/rename_towncrier/rename_towncrier.py From ff67b568e4ebcfce6f24310f2cdbd713d61b5f5e Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:30:53 -0500 Subject: [PATCH 09/19] FIX: Maybe --- .github/workflows/check_changelog.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 5f6e67ebeb2..bd2b34dd8f1 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -9,14 +9,14 @@ jobs: changelog_checker: name: Check towncrier entry in doc/changes/devel/ runs-on: ubuntu-latest - # permissions: - # contents: write + permissions: + contents: write steps: - uses: actions/checkout@v4 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} - - run: actions/setup-python@v5 + - uses: actions/setup-python@v5 - run: pip install --upgrade towncrier pygithub - run: python ./.github/actions/rename_towncrier/rename_towncrier.py - uses: stefanzweifel/git-auto-commit-action@v5 From be69a17aad36dfce38b4ec6c33196766f33a2c0b Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:32:49 -0500 Subject: [PATCH 10/19] FIX: python version --- .github/workflows/check_changelog.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index bd2b34dd8f1..d88dbd5684a 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -17,6 +17,8 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} - uses: actions/setup-python@v5 + with: + python-version: '3.12' - run: pip install --upgrade towncrier pygithub - run: python ./.github/actions/rename_towncrier/rename_towncrier.py - uses: stefanzweifel/git-auto-commit-action@v5 @@ -25,8 +27,8 @@ jobs: commit_message: "DOC: Update changelog entry to PR ${{ github.event.pull_request.number }}" - run: exit 1 if: steps.commit-action.outputs.changes_detected == 'false' - # - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed - # with: - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # BOT_USERNAME: changelog-bot + - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed + with: + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BOT_USERNAME: changelog-bot From d3ab006e677fe6271ae104d3642bdeb0f7a626be Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:33:15 -0500 Subject: [PATCH 11/19] FIX: Indent --- .github/workflows/check_changelog.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index d88dbd5684a..49e132d7461 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -28,7 +28,6 @@ jobs: - run: exit 1 if: steps.commit-action.outputs.changes_detected == 'false' - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed - with: - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BOT_USERNAME: changelog-bot + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BOT_USERNAME: changelog-bot From 470375d05643926f5c94929e489840f626b04bae Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:46:36 -0500 Subject: [PATCH 12/19] FIX: autofix? --- .github/workflows/check_changelog.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 49e132d7461..4dd17e20a4a 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -4,13 +4,13 @@ on: # yamllint disable-line rule:truthy pull_request: types: [opened, synchronize, labeled, unlabeled] -# https://joht.github.io/johtizen/build/2022/01/20/github-actions-push-into-repository.html#git-commit-within-a-pull-request#example-4 +permissions: + contents: read + jobs: changelog_checker: name: Check towncrier entry in doc/changes/devel/ runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: actions/checkout@v4 with: @@ -21,12 +21,7 @@ jobs: python-version: '3.12' - run: pip install --upgrade towncrier pygithub - run: python ./.github/actions/rename_towncrier/rename_towncrier.py - - uses: stefanzweifel/git-auto-commit-action@v5 - id: commit-action - with: - commit_message: "DOC: Update changelog entry to PR ${{ github.event.pull_request.number }}" - - run: exit 1 - if: steps.commit-action.outputs.changes_detected == 'false' + - uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6b619fae778884f77b3851bf82e070cb7d40d607 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:50:07 -0500 Subject: [PATCH 13/19] FIX: autofix --- .github/workflows/check_changelog.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 4dd17e20a4a..cf59c165258 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -4,24 +4,11 @@ on: # yamllint disable-line rule:truthy pull_request: types: [opened, synchronize, labeled, unlabeled] -permissions: - contents: read - jobs: changelog_checker: name: Check towncrier entry in doc/changes/devel/ runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - run: pip install --upgrade towncrier pygithub - - run: python ./.github/actions/rename_towncrier/rename_towncrier.py - - uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc - uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5aefc5b05c8a8d9e1ae6bd1c598829ff3346b7a3 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:50:19 -0500 Subject: [PATCH 14/19] FIX: Missing --- .github/workflows/autofix.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 00000000000..79c8ee528a0 --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,21 @@ +name: autofix.ci + +on: # yamllint disable-line rule:truthy + pull_request: + types: [opened, synchronize, labeled, unlabeled] + +permissions: + contents: read + +jobs: + autofix: + name: Autoupdate changelog entry + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: pip install --upgrade towncrier pygithub + - run: python ./.github/actions/rename_towncrier/rename_towncrier.py + - uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc From f3f84b1e63ce33d6455005608ec956f3117439d8 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 14:53:29 -0500 Subject: [PATCH 15/19] FIX: Name --- .github/actions/rename_towncrier/rename_towncrier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/rename_towncrier/rename_towncrier.py b/.github/actions/rename_towncrier/rename_towncrier.py index a6183998449..68971d1c83f 100755 --- a/.github/actions/rename_towncrier/rename_towncrier.py +++ b/.github/actions/rename_towncrier/rename_towncrier.py @@ -53,4 +53,4 @@ to = file_re.sub(rf"{directory}{pr_num}.\1.rst", fro) print(f"Renaming {fro} to {to}") if real: - subprocess.check_call(["git", "mv", fro, to]) + subprocess.check_call(["mv", fro, to]) From c1e6d75a9464d280e333e2bfb0a685a979840b88 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 15:09:24 -0500 Subject: [PATCH 16/19] FIX: Ver --- .github/workflows/autofix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 79c8ee528a0..2c0b693750e 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -18,4 +18,4 @@ jobs: python-version: '3.12' - run: pip install --upgrade towncrier pygithub - run: python ./.github/actions/rename_towncrier/rename_towncrier.py - - uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc + - uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84 From ab56ff38ee0d1ded80ec75c8e8e956f176d15a6a Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 20:10:01 +0000 Subject: [PATCH 17/19] [autofix.ci] apply automated fixes --- doc/changes/devel/{other.rst => 12318.other.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/changes/devel/{other.rst => 12318.other.rst} (100%) diff --git a/doc/changes/devel/other.rst b/doc/changes/devel/12318.other.rst similarity index 100% rename from doc/changes/devel/other.rst rename to doc/changes/devel/12318.other.rst From 1c1fdc1d556fe371e22f2dd6ac0d15d1f359a523 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 15:17:55 -0500 Subject: [PATCH 18/19] TST: Ping From 347cd324337444382da30319f6fbb6249c3cea06 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 21 Dec 2023 15:31:17 -0500 Subject: [PATCH 19/19] FIX: Revert --- .pre-commit-config.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fed7db76310..f23220d9819 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,6 +59,3 @@ repos: # Avoid the conflict between mne/__init__.py and mne/__init__.pyi by ignoring the former exclude: ^mne/(beamformer|channels|commands|datasets|decoding|export|forward|gui|html_templates|inverse_sparse|io|minimum_norm|preprocessing|report|simulation|source_space|stats|time_frequency|utils|viz)?/?__init__\.py$ additional_dependencies: ["numpy==1.26.2"] - -ci: - autofix_prs: false