Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4cff14

Browse files
committed
Fix E265 in test files.
1 parent 70bc429 commit f4cff14

File tree

4 files changed

+54
-55
lines changed

4 files changed

+54
-55
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ def test_cursor_data():
286286

287287
# Hmm, something is wrong here... I get 0, not None...
288288
# But, this works further down in the tests with extents flipped
289-
#x, y = 0.1, -0.1
290-
#xdisp, ydisp = ax.transData.transform([x, y])
291-
#event = MouseEvent('motion_notify_event', fig.canvas, xdisp, ydisp)
292-
#z = im.get_cursor_data(event)
293-
#assert z is None, "Did not get None, got %d" % z
289+
# x, y = 0.1, -0.1
290+
# xdisp, ydisp = ax.transData.transform([x, y])
291+
# event = MouseEvent('motion_notify_event', fig.canvas, xdisp, ydisp)
292+
# z = im.get_cursor_data(event)
293+
# assert z is None, "Did not get None, got %d" % z
294294

295295
ax.clear()
296296
# Now try with the extents flipped.

lib/matplotlib/tests/test_mlab.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,11 +858,11 @@ def test_cohere():
858858
assert np.isreal(np.mean(cohsq))
859859

860860

861-
#*****************************************************************
862-
# These Tests where taken from SCIPY with some minor modifications
861+
# *****************************************************************
862+
# These Tests were taken from SCIPY with some minor modifications
863863
# this can be retrieved from:
864864
# https://github.com/scipy/scipy/blob/master/scipy/stats/tests/test_kdeoth.py
865-
#*****************************************************************
865+
# *****************************************************************
866866

867867
class TestGaussianKDE:
868868

lib/matplotlib/tests/test_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_auto_column():
149149
tb2.set_fontsize(12)
150150
tb2.auto_set_column_width((-1, 0, 1))
151151

152-
#3 single inputs
152+
# 3 single inputs
153153
ax3 = fig.add_subplot(4, 1, 3)
154154
ax3.axis('off')
155155
tb3 = ax3.table(
@@ -164,7 +164,7 @@ def test_auto_column():
164164
tb3.auto_set_column_width(0)
165165
tb3.auto_set_column_width(1)
166166

167-
#4 non integer iterable input
167+
# 4 non integer iterable input
168168
ax4 = fig.add_subplot(4, 1, 4)
169169
ax4.axis('off')
170170
tb4 = ax4.table(

lib/matplotlib/tests/tinypages/conf.py

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@
1818
# If extensions (or modules to document with autodoc) are in another directory,
1919
# add these directories to sys.path here. If the directory is relative to the
2020
# documentation root, use os.path.abspath to make it absolute, like shown here.
21-
#sys.path.insert(0, os.path.abspath('.'))
2221
sys.path.insert(0, abspath(pjoin('..', '..')))
2322

2423
# -- General configuration ------------------------------------------------
2524

2625
# If your documentation needs a minimal Sphinx version, state it here.
27-
#needs_sphinx = '1.0'
26+
# needs_sphinx = '1.0'
2827

2928
# Add any Sphinx extension module names here, as strings. They can be
3029
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -38,7 +37,7 @@
3837
source_suffix = '.rst'
3938

4039
# The encoding of source files.
41-
#source_encoding = 'utf-8-sig'
40+
# source_encoding = 'utf-8-sig'
4241

4342
# The master toctree document.
4443
master_doc = 'index'
@@ -58,41 +57,41 @@
5857

5958
# The language for content autogenerated by Sphinx. Refer to documentation
6059
# for a list of supported languages.
61-
#language = None
60+
# language = None
6261

6362
# There are two options for replacing |today|: either, you set today to some
6463
# non-false value, then it is used:
65-
#today = ''
64+
# today = ''
6665
# Else, today_fmt is used as the format for a strftime call.
67-
#today_fmt = '%B %d, %Y'
66+
# today_fmt = '%B %d, %Y'
6867

6968
# List of patterns, relative to source directory, that match files and
7069
# directories to ignore when looking for source files.
7170
exclude_patterns = ['_build']
7271

7372
# The reST default role (used for this markup: `text`) to use for all
7473
# documents.
75-
#default_role = None
74+
# default_role = None
7675

7776
# If true, '()' will be appended to :func: etc. cross-reference text.
78-
#add_function_parentheses = True
77+
# add_function_parentheses = True
7978

8079
# If true, the current module name will be prepended to all description
8180
# unit titles (such as .. function::).
82-
#add_module_names = True
81+
# add_module_names = True
8382

8483
# If true, sectionauthor and moduleauthor directives will be shown in the
8584
# output. They are ignored by default.
86-
#show_authors = False
85+
# show_authors = False
8786

8887
# The name of the Pygments (syntax highlighting) style to use.
8988
pygments_style = 'sphinx'
9089

9190
# A list of ignored prefixes for module index sorting.
92-
#modindex_common_prefix = []
91+
# modindex_common_prefix = []
9392

9493
# If true, keep warnings as "system message" paragraphs in the built documents.
95-
#keep_warnings = False
94+
# keep_warnings = False
9695

9796

9897
# -- Options for HTML output ----------------------------------------------
@@ -107,26 +106,26 @@
107106
# Theme options are theme-specific and customize the look and feel of a theme
108107
# further. For a list of options available for each theme, see the
109108
# documentation.
110-
#html_theme_options = {}
109+
# html_theme_options = {}
111110

112111
# Add any paths that contain custom themes here, relative to this directory.
113-
#html_theme_path = []
112+
# html_theme_path = []
114113

115114
# The name for this set of Sphinx documents. If None, it defaults to
116115
# "<project> v<release> documentation".
117-
#html_title = None
116+
# html_title = None
118117

119118
# A shorter title for the navigation bar. Default is the same as html_title.
120-
#html_short_title = None
119+
# html_short_title = None
121120

122121
# The name of an image file (relative to this directory) to place at the top
123122
# of the sidebar.
124-
#html_logo = None
123+
# html_logo = None
125124

126125
# The name of an image file (within the static path) to use as favicon of the
127126
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
128127
# pixels large.
129-
#html_favicon = None
128+
# html_favicon = None
130129

131130
# Add any paths that contain custom static files (such as style sheets) here,
132131
# relative to this directory. They are copied after the builtin static files,
@@ -136,48 +135,48 @@
136135
# Add any extra paths that contain custom files (such as robots.txt or
137136
# .htaccess) here, relative to this directory. These files are copied
138137
# directly to the root of the documentation.
139-
#html_extra_path = []
138+
# html_extra_path = []
140139

141140
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
142141
# using the given strftime format.
143-
#html_last_updated_fmt = '%b %d, %Y'
142+
# html_last_updated_fmt = '%b %d, %Y'
144143

145144
# If true, SmartyPants will be used to convert quotes and dashes to
146145
# typographically correct entities.
147-
#html_use_smartypants = True
146+
# html_use_smartypants = True
148147

149148
# Custom sidebar templates, maps document names to template names.
150-
#html_sidebars = {}
149+
# html_sidebars = {}
151150

152151
# Additional templates that should be rendered to pages, maps page names to
153152
# template names.
154-
#html_additional_pages = {}
153+
# html_additional_pages = {}
155154

156155
# If false, no module index is generated.
157-
#html_domain_indices = True
156+
# html_domain_indices = True
158157

159158
# If false, no index is generated.
160-
#html_use_index = True
159+
# html_use_index = True
161160

162161
# If true, the index is split into individual pages for each letter.
163-
#html_split_index = False
162+
# html_split_index = False
164163

165164
# If true, links to the reST sources are added to the pages.
166-
#html_show_sourcelink = True
165+
# html_show_sourcelink = True
167166

168167
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
169-
#html_show_sphinx = True
168+
# html_show_sphinx = True
170169

171170
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
172-
#html_show_copyright = True
171+
# html_show_copyright = True
173172

174173
# If true, an OpenSearch description file will be output, and all pages will
175174
# contain a <link> tag referring to it. The value of this option must be the
176175
# base URL from which the finished HTML is served.
177-
#html_use_opensearch = ''
176+
# html_use_opensearch = ''
178177

179178
# This is the file name suffix for HTML files (e.g. ".xhtml").
180-
#html_file_suffix = None
179+
# html_file_suffix = None
181180

182181
# Output file base name for HTML help builder.
183182
htmlhelp_basename = 'tinypagesdoc'
@@ -187,13 +186,13 @@
187186

188187
latex_elements = {
189188
# The paper size ('letterpaper' or 'a4paper').
190-
#'papersize': 'letterpaper',
189+
# 'papersize': 'letterpaper',
191190

192191
# The font size ('10pt', '11pt' or '12pt').
193-
#'pointsize': '10pt',
192+
# 'pointsize': '10pt',
194193

195194
# Additional stuff for the LaTeX preamble.
196-
#'preamble': '',
195+
# 'preamble': '',
197196
}
198197

199198
# Grouping the document tree into LaTeX files. List of tuples
@@ -206,23 +205,23 @@
206205

207206
# The name of an image file (relative to this directory) to place at the top of
208207
# the title page.
209-
#latex_logo = None
208+
# latex_logo = None
210209

211210
# For "manual" documents, if this is true, then toplevel headings are parts,
212211
# not chapters.
213-
#latex_use_parts = False
212+
# latex_use_parts = False
214213

215214
# If true, show page references after internal links.
216-
#latex_show_pagerefs = False
215+
# latex_show_pagerefs = False
217216

218217
# If true, show URL addresses after external links.
219-
#latex_show_urls = False
218+
# latex_show_urls = False
220219

221220
# Documents to append as an appendix to all manuals.
222-
#latex_appendices = []
221+
# latex_appendices = []
223222

224223
# If false, no module index is generated.
225-
#latex_domain_indices = True
224+
# latex_domain_indices = True
226225

227226

228227
# -- Options for manual page output ---------------------------------------
@@ -235,7 +234,7 @@
235234
]
236235

237236
# If true, show URL addresses after external links.
238-
#man_show_urls = False
237+
# man_show_urls = False
239238

240239

241240
# -- Options for Texinfo output -------------------------------------------
@@ -250,13 +249,13 @@
250249
]
251250

252251
# Documents to append as an appendix to all manuals.
253-
#texinfo_appendices = []
252+
# texinfo_appendices = []
254253

255254
# If false, no module index is generated.
256-
#texinfo_domain_indices = True
255+
# texinfo_domain_indices = True
257256

258257
# How to display URL addresses: 'footnote', 'no', or 'inline'.
259-
#texinfo_show_urls = 'footnote'
258+
# texinfo_show_urls = 'footnote'
260259

261260
# If true, do not generate a @detailmenu in the "Top" node's menu.
262-
#texinfo_no_detailmenu = False
261+
# texinfo_no_detailmenu = False

0 commit comments

Comments
 (0)