|
10 | 10 | sys.path.append(os.path.abspath('.'))
|
11 | 11 | sys.path.append(os.path.abspath('..'))
|
12 | 12 |
|
| 13 | +# this package |
13 | 14 | from __pkginfo__ import __version__
|
14 | 15 |
|
15 | 16 | # User-configurable lines
|
|
19 | 20 | github_repository = "coverage_pyver_pragma"
|
20 | 21 | github_url = f"https://github.com/{github_username}/{github_repository}"
|
21 | 22 |
|
22 |
| - |
23 | 23 | rst_prolog = f""".. |pkgname| replace:: coverage_pyver_pragma
|
24 | 24 | .. |pkgname2| replace:: ``coverage_pyver_pragma``
|
25 | 25 | .. |browse_github| replace:: `Browse the GitHub Repository <{github_url}>`__
|
|
34 | 34 | package_root = "coverage_pyver_pragma"
|
35 | 35 |
|
36 | 36 | extensions = [
|
37 |
| - 'sphinx_toolbox', |
38 |
| - 'sphinx_toolbox.more_autodoc', |
39 |
| - 'sphinx_toolbox.more_autosummary', |
40 |
| - 'sphinx_toolbox.tweaks.param_dash', |
41 |
| - 'sphinx.ext.intersphinx', |
42 |
| - 'sphinx.ext.mathjax', |
43 |
| - 'sphinxcontrib.httpdomain', |
44 |
| - 'sphinxcontrib.extras_require', |
45 |
| - 'sphinx.ext.todo', |
46 |
| - 'sphinxemoji.sphinxemoji', |
47 |
| - 'notfound.extension', |
48 |
| - 'sphinx_copybutton', |
49 |
| - 'sphinxcontrib.default_values', |
50 |
| - 'sphinxcontrib.toctree_plus', |
51 |
| - 'seed_intersphinx_mapping', |
52 |
| - ] |
| 37 | + 'sphinx_toolbox', |
| 38 | + 'sphinx_toolbox.more_autodoc', |
| 39 | + 'sphinx_toolbox.more_autosummary', |
| 40 | + 'sphinx_toolbox.tweaks.param_dash', |
| 41 | + 'sphinx.ext.intersphinx', |
| 42 | + 'sphinx.ext.mathjax', |
| 43 | + 'sphinxcontrib.httpdomain', |
| 44 | + 'sphinxcontrib.extras_require', |
| 45 | + 'sphinx.ext.todo', |
| 46 | + 'sphinxemoji.sphinxemoji', |
| 47 | + 'notfound.extension', |
| 48 | + 'sphinx_copybutton', |
| 49 | + 'sphinxcontrib.default_values', |
| 50 | + 'sphinxcontrib.toctree_plus', |
| 51 | + 'seed_intersphinx_mapping', |
| 52 | + ] |
53 | 53 |
|
54 | 54 | sphinxemoji_style = 'twemoji'
|
55 | 55 | todo_include_todos = bool(os.environ.get("SHOW_TODOS", 0))
|
|
110 | 110 | }
|
111 | 111 |
|
112 | 112 | add_module_names = False
|
113 |
| - |
114 |
| - |
| 113 | +hide_none_rtype = True |
| 114 | + |
| 115 | + |
| 116 | +autodoc_exclude_members = [ # Exclude "standard" methods. |
| 117 | + "__dict__", |
| 118 | + "__class__", |
| 119 | + "__dir__", |
| 120 | + "__weakref__", |
| 121 | + "__module__", |
| 122 | + "__annotations__", |
| 123 | + "__orig_bases__", |
| 124 | + "__parameters__", |
| 125 | + "__subclasshook__", |
| 126 | + "__init_subclass__", |
| 127 | + "__attrs_attrs__", |
| 128 | + "__init__", |
| 129 | + "__new__", |
| 130 | + "__getnewargs__", |
| 131 | + "__abstractmethods__", |
| 132 | + "__hash__", |
| 133 | + ] |
115 | 134 | autodoc_default_options = {
|
116 | 135 | 'members': None, # Include all members (methods).
|
117 | 136 | 'special-members': None,
|
118 | 137 | "autosummary": None,
|
119 | 138 | "show-inheritance": None,
|
120 |
| - 'exclude-members': ','.join([ # Exclude "standard" methods. |
121 |
| - "__dict__", |
122 |
| - "__class__", |
123 |
| - "__dir__", |
124 |
| - "__weakref__", |
125 |
| - "__module__", |
126 |
| - "__annotations__", |
127 |
| - "__orig_bases__", |
128 |
| - "__parameters__", |
129 |
| - "__subclasshook__", |
130 |
| - "__init_subclass__", |
131 |
| - "__attrs_attrs__", |
132 |
| - "__init__", |
133 |
| - "__new__", |
134 |
| - "__getnewargs__", |
135 |
| - "__abstractmethods__", |
136 |
| - "__hash__", |
137 |
| - ]), |
| 139 | + 'exclude-members': ','.join(autodoc_exclude_members), |
138 | 140 | }
|
0 commit comments