diff --git a/doc/conf.py b/doc/conf.py index d1b230d34..c0f747c7e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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 @@ -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",