Skip to content

Commit

Permalink
FIX: Import
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Nov 18, 2024
1 parent 67ea020 commit 3c2c8e5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import mne
import sphinx.util.logging
from mne.fixes import _compare_version
from mne.tests.test_docstring_parameters import error_ignores
from sphinx_gallery.sorting import FileNameSortKey

import mne_nirs
Expand Down Expand Up @@ -119,7 +118,21 @@
numpydoc_class_members_toctree = False
numpydoc_attributes_as_param_list = True
numpydoc_validate = True
numpydoc_validation_checks = {"all"} | set(error_ignores)
numpydoc_validation_checks = (
{"all"}
| {
# These we do not live by:
"GL01", # Docstring should start in the line immediately after the quotes
"EX01",
"EX02", # examples failed (we test them separately)
"ES01", # no extended summary
"SA01", # no see also
"YD01", # no yields section
"SA04", # no description in See Also
"PR04", # Parameter "shape (n_channels" has no type
"RT02", # The first line of the Returns section should contain only the type, unless multiple values are being returned # noqa
}
)
numpydoc_validation_exclude = { # set of regex
# dict subclasses
r"\.clear",
Expand Down

0 comments on commit 3c2c8e5

Please sign in to comment.