diff options
author | mattip <matti.picus@gmail.com> | 2019-01-14 09:18:13 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-01-14 09:18:13 +0200 |
commit | 7fea4027fb85f8347af6c2e7e319f41a0603891f (patch) | |
tree | 43050a8827d8cc13232f05c24efbc4d19d57ab8c /tools | |
parent | db6f50b27f2f705bd7ace8420a7204ff50872296 (diff) | |
download | numpy-7fea4027fb85f8347af6c2e7e319f41a0603891f.tar.gz |
TEST: activate doctests on doc.structured_arrays, fix for pure doc module
Diffstat (limited to 'tools')
-rw-r--r-- | tools/refguide_check.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/refguide_check.py b/tools/refguide_check.py index fec715f63..531eeacb0 100644 --- a/tools/refguide_check.py +++ b/tools/refguide_check.py @@ -67,6 +67,7 @@ BASE_MODULE = "numpy" PUBLIC_SUBMODULES = [ 'core', + 'doc.structured_arrays', 'f2py', 'linalg', 'lib', @@ -194,6 +195,9 @@ def get_all_dict(module): all_dict.remove(name) except ValueError: pass + if not all_dict: + # Must be a pure documentation module like doc.structured_arrays + all_dict.append('__doc__') # Modules are almost always private; real submodules need a separate # run of refguide_check. @@ -309,7 +313,7 @@ def validate_rst_syntax(text, name, dots=True): ok_unknown_items = set([ 'mod', 'currentmodule', 'autosummary', 'data', 'obj', 'versionadded', 'versionchanged', 'module', 'class', - 'ref', 'func', 'toctree', 'moduleauthor', + 'ref', 'func', 'toctree', 'moduleauthor', 'term', 'c:member', 'sectionauthor', 'codeauthor', 'eq', 'doi', 'DOI', 'arXiv', 'arxiv' ]) |