Skip to content

Commit 9cb64a2

Browse files
committed
cleaned up flake8 errors in docs/conf.py
1 parent f05e5e8 commit 9cb64a2

File tree

1 file changed

+46
-45
lines changed

1 file changed

+46
-45
lines changed

docs/conf.py

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
import sys
16-
import os
15+
# import sys (imports not needed)
16+
# import os
1717

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('.'))
21+
# sys.path.insert(0, os.path.abspath('.'))
2222

2323
# -- General configuration ------------------------------------------------
2424

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

2828
# Add any Sphinx extension module names here, as strings. They can be
2929
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -44,7 +44,7 @@
4444
source_suffix = '.rst'
4545

4646
# The encoding of source files.
47-
#source_encoding = 'utf-8-sig'
47+
# source_encoding = 'utf-8-sig'
4848

4949
# The master toctree document.
5050
master_doc = 'index'
@@ -72,9 +72,9 @@
7272

7373
# There are two options for replacing |today|: either, you set today to some
7474
# non-false value, then it is used:
75-
#today = ''
75+
# today = ''
7676
# Else, today_fmt is used as the format for a strftime call.
77-
#today_fmt = '%B %d, %Y'
77+
# today_fmt = '%B %d, %Y'
7878

7979
# List of patterns, relative to source directory, that match files and
8080
# directories to ignore when looking for source files.
@@ -83,27 +83,27 @@
8383

8484
# The reST default role (used for this markup: `text`) to use for all
8585
# documents.
86-
#default_role = None
86+
# default_role = None
8787

8888
# If true, '()' will be appended to :func: etc. cross-reference text.
89-
#add_function_parentheses = True
89+
# add_function_parentheses = True
9090

9191
# If true, the current module name will be prepended to all description
9292
# unit titles (such as .. function::).
93-
#add_module_names = True
93+
# add_module_names = True
9494

9595
# If true, sectionauthor and moduleauthor directives will be shown in the
9696
# output. They are ignored by default.
97-
#show_authors = False
97+
# show_authors = False
9898

9999
# The name of the Pygments (syntax highlighting) style to use.
100100
pygments_style = 'tango'
101101

102102
# A list of ignored prefixes for module index sorting.
103-
#modindex_common_prefix = []
103+
# modindex_common_prefix = []
104104

105105
# If true, keep warnings as "system message" paragraphs in the built documents.
106-
#keep_warnings = False
106+
# keep_warnings = False
107107

108108
# If true, `todo` and `todoList` produce output, else they produce nothing.
109109
todo_include_todos = True
@@ -124,14 +124,14 @@
124124
}
125125

126126
# Add any paths that contain custom themes here, relative to this directory.
127-
#html_theme_path = []
127+
# html_theme_path = []
128128

129129
# The name for this set of Sphinx documents.
130130
# "<project> v<release> documentation" by default.
131-
#html_title = u'cbapi v0.9.1'
131+
# html_title = u'cbapi v0.9.1'
132132

133133
# A shorter title for the navigation bar. Default is the same as html_title.
134-
#html_short_title = None
134+
# html_short_title = None
135135

136136
# The name of an image file (relative to this directory) to place at the top
137137
# of the sidebar.
@@ -140,7 +140,7 @@
140140
# The name of an image file (relative to this directory) to use as a favicon of
141141
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
142142
# pixels large.
143-
#html_favicon = None
143+
# html_favicon = None
144144

145145
# Add any paths that contain custom static files (such as style sheets) here,
146146
# relative to this directory. They are copied after the builtin static files,
@@ -150,64 +150,64 @@
150150
# Add any extra paths that contain custom files (such as robots.txt or
151151
# .htaccess) here, relative to this directory. These files are copied
152152
# directly to the root of the documentation.
153-
#html_extra_path = []
153+
# html_extra_path = []
154154

155155
# If not None, a 'Last updated on:' timestamp is inserted at every page
156156
# bottom, using the given strftime format.
157157
# The empty string is equivalent to '%b %d, %Y'.
158-
#html_last_updated_fmt = None
158+
# html_last_updated_fmt = None
159159

160160
# If true, SmartyPants will be used to convert quotes and dashes to
161161
# typographically correct entities.
162-
#html_use_smartypants = True
162+
# html_use_smartypants = True
163163

164164
# Custom sidebar templates, maps document names to template names.
165-
#html_sidebars = {}
165+
# html_sidebars = {}
166166

167167
# Additional templates that should be rendered to pages, maps page names to
168168
# template names.
169-
#html_additional_pages = {}
169+
# html_additional_pages = {}
170170

171171
# If false, no module index is generated.
172-
#html_domain_indices = True
172+
# html_domain_indices = True
173173

174174
# If false, no index is generated.
175-
#html_use_index = True
175+
# html_use_index = True
176176

177177
# If true, the index is split into individual pages for each letter.
178-
#html_split_index = False
178+
# html_split_index = False
179179

180180
# If true, links to the reST sources are added to the pages.
181-
#html_show_sourcelink = True
181+
# html_show_sourcelink = True
182182

183183
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
184-
#html_show_sphinx = True
184+
# html_show_sphinx = True
185185

186186
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
187-
#html_show_copyright = True
187+
# html_show_copyright = True
188188

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

194194
# This is the file name suffix for HTML files (e.g. ".xhtml").
195-
#html_file_suffix = None
195+
# html_file_suffix = None
196196

197197
# Language to be used for generating the HTML full-text search index.
198198
# Sphinx supports the following languages:
199199
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
200200
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
201-
#html_search_language = 'en'
201+
# html_search_language = 'en'
202202

203203
# A dictionary with options for the search language support, empty by default.
204204
# 'ja' uses this config value.
205205
# 'zh' user can custom change `jieba` dictionary path.
206-
#html_search_options = {'type': 'default'}
206+
# html_search_options = {'type': 'default'}
207207

208208
# The name of a javascript file (relative to the configuration directory) that
209209
# implements a search results scorer. If empty, the default will be used.
210-
#html_search_scorer = 'scorer.js'
210+
# html_search_scorer = 'scorer.js'
211211

212212
# Output file base name for HTML help builder.
213213
htmlhelp_basename = 'CarbonBlackAPI-PythonBindingsdoc'
@@ -222,23 +222,23 @@
222222

223223
# The name of an image file (relative to this directory) to place at the top of
224224
# the title page.
225-
#latex_logo = None
225+
# latex_logo = None
226226

227227
# For "manual" documents, if this is true, then toplevel headings are parts,
228228
# not chapters.
229-
#latex_use_parts = False
229+
# latex_use_parts = False
230230

231231
# If true, show page references after internal links.
232-
#latex_show_pagerefs = False
232+
# latex_show_pagerefs = False
233233

234234
# If true, show URL addresses after external links.
235-
#latex_show_urls = False
235+
# latex_show_urls = False
236236

237237
# Documents to append as an appendix to all manuals.
238-
#latex_appendices = []
238+
# latex_appendices = []
239239

240240
# If false, no module index is generated.
241-
#latex_domain_indices = True
241+
# latex_domain_indices = True
242242

243243

244244
# -- Options for manual page output ---------------------------------------
@@ -251,7 +251,7 @@
251251
]
252252

253253
# If true, show URL addresses after external links.
254-
#man_show_urls = False
254+
# man_show_urls = False
255255

256256

257257
# -- Options for Texinfo output -------------------------------------------
@@ -266,16 +266,16 @@
266266
]
267267

268268
# Documents to append as an appendix to all manuals.
269-
#texinfo_appendices = []
269+
# texinfo_appendices = []
270270

271271
# If false, no module index is generated.
272-
#texinfo_domain_indices = True
272+
# texinfo_domain_indices = True
273273

274274
# How to display URL addresses: 'footnote', 'no', or 'inline'.
275-
#texinfo_show_urls = 'footnote'
275+
# texinfo_show_urls = 'footnote'
276276

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

280280
latex_elements = {
281281
# Additional stuff for the LaTeX preamble.
@@ -291,11 +291,12 @@
291291
# Latex figure (float) alignment
292292
# 'figure_align': 'htbp',
293293
'preamble': "".join((
294-
'\DeclareUnicodeCharacter{25A0}{=}', # Solid box
294+
'\\DeclareUnicodeCharacter{25A0}{=}', # Solid box
295295
)),
296296
}
297297

298298
autoclass_content = 'both'
299299

300+
300301
def setup(app):
301302
app.add_stylesheet('css/custom.css')

0 commit comments

Comments
 (0)