Skip to content

Commit 758957e

Browse files
authored
Merge branch 'main' into eyetracking-refactor
2 parents 0375012 + ecccc3e commit 758957e

File tree

5 files changed

+34
-5
lines changed

5 files changed

+34
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# Ruff mne
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.14.11
4+
rev: v0.14.13
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne
@@ -33,7 +33,7 @@ repos:
3333

3434
# yamllint
3535
- repo: https://github.com/adrienverge/yamllint.git
36-
rev: v1.37.1
36+
rev: v1.38.0
3737
hooks:
3838
- id: yamllint
3939
args: [--strict, -c, .yamllint.yml]
@@ -82,7 +82,7 @@ repos:
8282

8383
# zizmor
8484
- repo: https://github.com/woodruffw/zizmor-pre-commit
85-
rev: v1.20.0
85+
rev: v1.22.0
8686
hooks:
8787
- id: zizmor
8888
args: [--fix]

doc/changes/dev/13596.other.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Examples Using <some-method> section quirk fix in documentation, by :newcontrib:`Himanshu Mahor`.
2+

doc/changes/names.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
.. _Harrison Ritz: https://github.com/harrisonritz
118118
.. _Hasrat Ali Arzoo: https://github.com/hasrat17
119119
.. _Henrich Kolkhorst: https://github.com/hekolk
120+
.. _Himanshu Mahor: https://github.com/1himan
120121
.. _Hongjiang Ye: https://github.com/ye-hongjiang
121122
.. _Hubert Banville: https://github.com/hubertjb
122123
.. _Hyonyoung Shin: https://github.com/mcvain

doc/sphinxext/gh_substitutions.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,24 @@
22
# License: BSD-3-Clause
33
# Copyright the MNE-Python contributors.
44

5+
import docutils
56
from docutils.nodes import reference
6-
from docutils.parsers.rst.roles import set_classes
7+
8+
# Adapted from sphinx
9+
if docutils.__version_info__[:2] < (0, 22):
10+
from docutils.parsers.rst import roles
11+
12+
def _normalize_options(options):
13+
if options is None:
14+
return {}
15+
n_options = options.copy()
16+
roles.set_classes(n_options)
17+
return n_options
18+
19+
else:
20+
from docutils.parsers.rst.roles import (
21+
normalize_options as _normalize_options,
22+
)
723

824

925
def gh_role(name, rawtext, text, lineno, inliner, options={}, content=[]): # noqa: B006
@@ -22,7 +38,7 @@ def gh_role(name, rawtext, text, lineno, inliner, options={}, content=[]): # no
2238
slug = "issues/" + text
2339
text = "#" + text
2440
ref = "https://github.com/mne-tools/mne-python/" + slug
25-
set_classes(options)
41+
options = _normalize_options(options)
2642
node = reference(rawtext, text, refuri=ref, **options)
2743
return [node], []
2844

doc/sphinxext/mne_doc_utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ def reset_warnings(gallery_conf, fname):
7676
warnings.filterwarnings( # deal with other modules having bad imports
7777
"ignore", message=f".*{key}.*", category=DeprecationWarning
7878
)
79+
# ignore (PendingDeprecationWarning)
80+
for key in (
81+
# sphinx
82+
"The mapping interface for autodoc options",
83+
# sphinxcontrib-bibtex
84+
"sphinx.environment.BuildEnvironment.app' is deprecated",
85+
):
86+
warnings.filterwarnings( # deal with other modules having bad imports
87+
"ignore", message=f".*{key}.*", category=PendingDeprecationWarning
88+
)
7989
# ignore (UserWarning)
8090
for message in (
8191
# Matplotlib

0 commit comments

Comments
 (0)