20
20
import os
21
21
import sys
22
22
23
- sys .path .insert (0 , os .path .abspath ('..' ))
23
+ sys .path .insert (0 , os .path .abspath (".." ))
24
24
25
25
# For dependencies
26
26
from unittest .mock import MagicMock
27
+
28
+
27
29
class Mock (MagicMock ):
28
30
@classmethod
29
31
def __getattr__ (cls , name ):
30
- return MagicMock ()
32
+ return MagicMock ()
31
33
32
- MOCK_MODULES = ['numpy' , 'matplotlib' , 'matplotlib.pyplot' , 'pandas' , 'scipy' ]
34
+
35
+ MOCK_MODULES = ["numpy" , "matplotlib" , "matplotlib.pyplot" , "pandas" , "scipy" ]
33
36
sys .modules .update ((mod_name , Mock ()) for mod_name in MOCK_MODULES )
34
37
35
38
# -- General configuration ------------------------------------------------
@@ -41,26 +44,26 @@ def __getattr__(cls, name):
41
44
# Add any Sphinx extension module names here, as strings. They can be
42
45
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
43
46
# ones.
44
- extensions = [' sphinx.ext.autodoc' ]
47
+ extensions = [" sphinx.ext.autodoc" ]
45
48
46
49
# Add any paths that contain templates here, relative to this directory.
47
- templates_path = [' _templates' ]
50
+ templates_path = [" _templates" ]
48
51
49
52
# The suffix(es) of source filenames.
50
53
# You can specify multiple suffix as a list of string:
51
54
#
52
55
# source_suffix = ['.rst', '.md']
53
- source_suffix = ' .rst'
56
+ source_suffix = " .rst"
54
57
55
58
# The master toctree document.
56
- master_doc = ' index'
59
+ master_doc = " index"
57
60
58
61
# General information about the project.
59
- project = ' wfdb'
60
- copyright = ' 2018, MIT Lab for Computational Physiology'
61
- author = ' MIT Lab for Computational Physiology'
62
+ project = " wfdb"
63
+ copyright = " 2018, MIT Lab for Computational Physiology"
64
+ author = " MIT Lab for Computational Physiology"
62
65
63
- with open (' ../wfdb/version.py' ) as f :
66
+ with open (" ../wfdb/version.py" ) as f :
64
67
__version__ = f .read ().split ()[- 1 ].strip ("'" )
65
68
# The version info for the project you're documenting, acts as replacement for
66
69
# |version| and |release|, also used in various other places throughout the
@@ -81,10 +84,10 @@ def __getattr__(cls, name):
81
84
# List of patterns, relative to source directory, that match files and
82
85
# directories to ignore when looking for source files.
83
86
# This patterns also effect to html_static_path and html_extra_path
84
- exclude_patterns = [' _build' , ' Thumbs.db' , ' .DS_Store' ]
87
+ exclude_patterns = [" _build" , " Thumbs.db" , " .DS_Store" ]
85
88
86
89
# The name of the Pygments (syntax highlighting) style to use.
87
- pygments_style = ' sphinx'
90
+ pygments_style = " sphinx"
88
91
89
92
# If true, `todo` and `todoList` produce output, else they produce nothing.
90
93
todo_include_todos = False
@@ -95,7 +98,7 @@ def __getattr__(cls, name):
95
98
# The theme to use for HTML and HTML Help pages. See the documentation for
96
99
# a list of builtin themes.
97
100
#
98
- html_theme = ' classic'
101
+ html_theme = " classic"
99
102
100
103
# Theme options are theme-specific and customize the look and feel of a theme
101
104
# further. For a list of options available for each theme, see the
@@ -106,25 +109,25 @@ def __getattr__(cls, name):
106
109
# Add any paths that contain custom static files (such as style sheets) here,
107
110
# relative to this directory. They are copied after the builtin static files,
108
111
# so a file named "default.css" will overwrite the builtin "default.css".
109
- html_static_path = [' _static' ]
112
+ html_static_path = [" _static" ]
110
113
111
114
# Custom sidebar templates, must be a dictionary that maps document names
112
115
# to template names.
113
116
#
114
117
# This is required for the alabaster theme
115
118
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
116
119
html_sidebars = {
117
- '**' : [
118
- ' relations.html' , # needs 'show_related': True theme option to display
119
- ' searchbox.html' ,
120
+ "**" : [
121
+ " relations.html" , # needs 'show_related': True theme option to display
122
+ " searchbox.html" ,
120
123
]
121
124
}
122
125
123
126
124
127
# -- Options for HTMLHelp output ------------------------------------------
125
128
126
129
# Output file base name for HTML help builder.
127
- htmlhelp_basename = ' wfdbdoc'
130
+ htmlhelp_basename = " wfdbdoc"
128
131
129
132
130
133
# -- Options for LaTeX output ---------------------------------------------
@@ -133,15 +136,12 @@ def __getattr__(cls, name):
133
136
# The paper size ('letterpaper' or 'a4paper').
134
137
#
135
138
# 'papersize': 'letterpaper',
136
-
137
139
# The font size ('10pt', '11pt' or '12pt').
138
140
#
139
141
# 'pointsize': '10pt',
140
-
141
142
# Additional stuff for the LaTeX preamble.
142
143
#
143
144
# 'preamble': '',
144
-
145
145
# Latex figure (float) alignment
146
146
#
147
147
# 'figure_align': 'htbp',
@@ -151,19 +151,15 @@ def __getattr__(cls, name):
151
151
# (source start file, target name, title,
152
152
# author, documentclass [howto, manual, or own class]).
153
153
latex_documents = [
154
- (master_doc , 'wfdb.tex' , 'wfdb Documentation' ,
155
- author , 'manual' ),
154
+ (master_doc , "wfdb.tex" , "wfdb Documentation" , author , "manual" ),
156
155
]
157
156
158
157
159
158
# -- Options for manual page output ---------------------------------------
160
159
161
160
# One entry per manual page. List of tuples
162
161
# (source start file, name, description, authors, manual section).
163
- man_pages = [
164
- (master_doc , 'wfdb' , 'wfdb Documentation' ,
165
- [author ], 1 )
166
- ]
162
+ man_pages = [(master_doc , "wfdb" , "wfdb Documentation" , [author ], 1 )]
167
163
168
164
169
165
# -- Options for Texinfo output -------------------------------------------
@@ -172,7 +168,13 @@ def __getattr__(cls, name):
172
168
# (source start file, target name, title, author,
173
169
# dir menu entry, description, category)
174
170
texinfo_documents = [
175
- (master_doc , 'wfdb' , 'wfdb Documentation' ,
176
- author , 'wfdb' , 'One line description of project.' ,
177
- 'Miscellaneous' ),
171
+ (
172
+ master_doc ,
173
+ "wfdb" ,
174
+ "wfdb Documentation" ,
175
+ author ,
176
+ "wfdb" ,
177
+ "One line description of project." ,
178
+ "Miscellaneous" ,
179
+ ),
178
180
]
0 commit comments