Skip to content

Commit ad5d131

Browse files
committed
Revert formatting change
1 parent 63d2ddf commit ad5d131

File tree

16 files changed

+1084
-1135
lines changed

16 files changed

+1084
-1135
lines changed

docs/conf.py

Lines changed: 83 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -32,86 +32,86 @@
3232
import sphinx_rtd_theme
3333

3434

35-
ON_READ_THE_DOCS = os.environ.get("READTHEDOCS", None) == "True"
35+
ON_READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True'
3636

3737
# If extensions (or modules to document with autodoc) are in another directory,
3838
# add these directories to sys.path here. If the directory is relative to the
3939
# documentation root, use os.path.abspath to make it absolute, like shown here.
40-
sys.path.insert(0, os.path.abspath(".."))
40+
sys.path.insert(0, os.path.abspath('..'))
4141

4242
# -- General configuration -----------------------------------------------------
4343

4444
# If your documentation needs a minimal Sphinx version, state it here.
45-
# needs_sphinx = '1.0'
45+
#needs_sphinx = '1.0'
4646

4747
# Add any Sphinx extension module names here, as strings. They can be extensions
4848
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
4949
extensions = [
50-
"sphinx.ext.autodoc",
51-
"sphinx.ext.autosummary",
52-
"sphinx.ext.doctest",
53-
"sphinx.ext.intersphinx",
54-
"sphinx.ext.todo",
55-
"sphinx.ext.viewcode",
50+
'sphinx.ext.autodoc',
51+
'sphinx.ext.autosummary',
52+
'sphinx.ext.doctest',
53+
'sphinx.ext.intersphinx',
54+
'sphinx.ext.todo',
55+
'sphinx.ext.viewcode',
5656
]
5757

5858
# Add any paths that contain templates here, relative to this directory.
5959
templates_path = []
6060

6161
# The suffix of source filenames.
62-
source_suffix = ".rst"
62+
source_suffix = '.rst'
6363

6464
# The encoding of source files.
65-
# source_encoding = 'utf-8-sig'
65+
#source_encoding = 'utf-8-sig'
6666

6767
# The master toctree document.
68-
master_doc = "index"
68+
master_doc = 'index'
6969

7070
# General information about the project.
71-
project = u"google-cloud-happybase"
72-
copyright = u"2014, Google"
71+
project = u'google-cloud-happybase'
72+
copyright = u'2014, Google'
7373

7474
# The version info for the project you're documenting, acts as replacement for
7575
# |version| and |release|, also used in various other places throughout the
7676
# built documents.
7777
#
7878
# The short X.Y version.
79-
distro = get_distribution("google-cloud-happybase")
80-
release = os.getenv("SPHINX_RELEASE", distro.version)
79+
distro = get_distribution('google-cloud-happybase')
80+
release = os.getenv('SPHINX_RELEASE', distro.version)
8181

8282
# The language for content autogenerated by Sphinx. Refer to documentation
8383
# for a list of supported languages.
84-
# language = None
84+
#language = None
8585

8686
# There are two options for replacing |today|: either, you set today to some
8787
# non-false value, then it is used:
88-
# today = ''
88+
#today = ''
8989
# Else, today_fmt is used as the format for a strftime call.
90-
# today_fmt = '%B %d, %Y'
90+
#today_fmt = '%B %d, %Y'
9191

9292
# List of patterns, relative to source directory, that match files and
9393
# directories to ignore when looking for source files.
94-
exclude_patterns = ["_build"]
94+
exclude_patterns = ['_build']
9595

9696
# The reST default role (used for this markup: `text`) to use for all documents.
97-
# default_role = None
97+
#default_role = None
9898

9999
# If true, '()' will be appended to :func: etc. cross-reference text.
100-
# add_function_parentheses = True
100+
#add_function_parentheses = True
101101

102102
# If true, the current module name will be prepended to all description
103103
# unit titles (such as .. function::).
104-
# add_module_names = True
104+
#add_module_names = True
105105

106106
# If true, sectionauthor and moduleauthor directives will be shown in the
107107
# output. They are ignored by default.
108-
# show_authors = False
108+
#show_authors = False
109109

110110
# The name of the Pygments (syntax highlighting) style to use.
111-
pygments_style = "sphinx"
111+
pygments_style = 'sphinx'
112112

113113
# A list of ignored prefixes for module index sorting.
114-
# modindex_common_prefix = []
114+
#modindex_common_prefix = []
115115

116116

117117
# -- Options for HTML output ---------------------------------------------------
@@ -120,149 +120,143 @@
120120
# a list of builtin themes.
121121

122122
if not ON_READ_THE_DOCS:
123-
html_theme = "sphinx_rtd_theme"
123+
html_theme = 'sphinx_rtd_theme'
124124
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
125125

126126
# Theme options are theme-specific and customize the look and feel of a theme
127127
# further. For a list of options available for each theme, see the
128128
# documentation.
129-
# html_theme_options = {}
129+
#html_theme_options = {}
130130

131131
# Add any paths that contain custom themes here, relative to this directory.
132-
# html_theme_path = []
132+
#html_theme_path = []
133133

134134
# The name for this set of Sphinx documents. If None, it defaults to
135135
# "<project> v<release> documentation".
136-
# html_title = None
136+
#html_title = None
137137

138138
# A shorter title for the navigation bar. Default is the same as html_title.
139-
# html_short_title = None
139+
#html_short_title = None
140140

141141
# The name of an image file (relative to this directory) to place at the top
142142
# of the sidebar.
143-
# html_logo = None
143+
#html_logo = None
144144

145145
# The name of an image file (within the static path) to use as favicon of the
146146
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
147147
# pixels large.
148-
html_favicon = "_static/images/favicon.ico"
148+
html_favicon = '_static/images/favicon.ico'
149149

150150
# Add any paths that contain custom static files (such as style sheets) here,
151151
# relative to this directory. They are copied after the builtin static files,
152152
# so a file named "default.css" will overwrite the builtin "default.css".
153-
html_static_path = ["_static"]
153+
html_static_path = ['_static']
154154

155-
html_add_permalinks = "#"
155+
html_add_permalinks = '#'
156156

157157
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158158
# using the given strftime format.
159-
# html_last_updated_fmt = '%b %d, %Y'
159+
#html_last_updated_fmt = '%b %d, %Y'
160160

161161
# If true, SmartyPants will be used to convert quotes and dashes to
162162
# typographically correct entities.
163-
# html_use_smartypants = True
163+
#html_use_smartypants = True
164164

165165
# Custom sidebar templates, maps document names to template names.
166-
# html_sidebars = {}
166+
#html_sidebars = {}
167167

168168
# Additional templates that should be rendered to pages, maps page names to
169169
# template names.
170-
# html_additional_pages = {}
170+
#html_additional_pages = {}
171171

172172
# If false, no module index is generated.
173-
# html_domain_indices = True
173+
#html_domain_indices = True
174174

175175
# If false, no index is generated.
176-
# html_use_index = True
176+
#html_use_index = True
177177

178178
# If true, the index is split into individual pages for each letter.
179-
# html_split_index = False
179+
#html_split_index = False
180180

181181
# If true, links to the reST sources are added to the pages.
182-
# html_show_sourcelink = True
182+
#html_show_sourcelink = True
183183

184184
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
185-
# html_show_sphinx = True
185+
#html_show_sphinx = True
186186

187187
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
188-
# html_show_copyright = True
188+
#html_show_copyright = True
189189

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

195195
# This is the file name suffix for HTML files (e.g. ".xhtml").
196-
# html_file_suffix = None
196+
#html_file_suffix = None
197197

198198
# Output file base name for HTML help builder.
199-
htmlhelp_basename = "googlecloudhappybasedoc"
199+
htmlhelp_basename = 'googlecloudhappybasedoc'
200200

201201
html_context = {}
202202

203203

204204
# -- Options for LaTeX output --------------------------------------------------
205205

206206
latex_elements = {
207-
# The paper size ('letterpaper' or 'a4paper').
208-
#'papersize': 'letterpaper',
209-
# The font size ('10pt', '11pt' or '12pt').
210-
#'pointsize': '10pt',
211-
# Additional stuff for the LaTeX preamble.
212-
#'preamble': '',
207+
# The paper size ('letterpaper' or 'a4paper').
208+
#'papersize': 'letterpaper',
209+
210+
# The font size ('10pt', '11pt' or '12pt').
211+
#'pointsize': '10pt',
212+
213+
# Additional stuff for the LaTeX preamble.
214+
#'preamble': '',
213215
}
214216

215217
metadata = distro.get_metadata(distro.PKG_INFO)
216-
author = message_from_string(metadata).get("Author")
218+
author = message_from_string(metadata).get('Author')
217219
# Grouping the document tree into LaTeX files. List of tuples
218220
# (source start file, target name, title, author, documentclass [howto/manual]).
219221
latex_documents = [
220-
(
221-
"index",
222-
"google-cloud-happybase.tex",
223-
u"google-cloud-happybase Documentation",
224-
author,
225-
"manual",
226-
)
222+
('index', 'google-cloud-happybase.tex',
223+
u'google-cloud-happybase Documentation',
224+
author, 'manual'),
227225
]
228226

229227
# The name of an image file (relative to this directory) to place at the top of
230228
# the title page.
231-
# latex_logo = None
229+
#latex_logo = None
232230

233231
# For "manual" documents, if this is true, then toplevel headings are parts,
234232
# not chapters.
235-
# latex_use_parts = False
233+
#latex_use_parts = False
236234

237235
# If true, show page references after internal links.
238-
# latex_show_pagerefs = False
236+
#latex_show_pagerefs = False
239237

240238
# If true, show URL addresses after external links.
241-
# latex_show_urls = False
239+
#latex_show_urls = False
242240

243241
# Documents to append as an appendix to all manuals.
244-
# latex_appendices = []
242+
#latex_appendices = []
245243

246244
# If false, no module index is generated.
247-
# latex_domain_indices = True
245+
#latex_domain_indices = True
248246

249247

250248
# -- Options for manual page output --------------------------------------------
251249

252250
# One entry per manual page. List of tuples
253251
# (source start file, name, description, authors, manual section).
254252
man_pages = [
255-
(
256-
"index",
257-
"google-cloud-happybase",
258-
u"google-cloud-happybase Documentation",
259-
[author],
260-
1,
261-
)
253+
('index', 'google-cloud-happybase',
254+
u'google-cloud-happybase Documentation',
255+
[author], 1)
262256
]
263257

264258
# If true, show URL addresses after external links.
265-
# man_show_urls = False
259+
#man_show_urls = False
266260

267261

268262
# -- Options for Texinfo output ------------------------------------------------
@@ -271,39 +265,32 @@
271265
# (source start file, target name, title, author,
272266
# dir menu entry, description, category)
273267
texinfo_documents = [
274-
(
275-
"index",
276-
"google-cloud-happybase",
277-
u"google-cloud-happybase Documentation",
278-
author,
279-
"google-cloud-happybase",
280-
"Python API for Google Cloud HappyBase.",
281-
"Miscellaneous",
282-
)
268+
('index', 'google-cloud-happybase',
269+
u'google-cloud-happybase Documentation',
270+
author, 'google-cloud-happybase', 'Python API for Google Cloud HappyBase.',
271+
'Miscellaneous'),
283272
]
284273

285274
# Documents to append as an appendix to all manuals.
286-
# texinfo_appendices = []
275+
#texinfo_appendices = []
287276

288277
# If false, no module index is generated.
289-
# texinfo_domain_indices = True
278+
#texinfo_domain_indices = True
290279

291280
# How to display URL addresses: 'footnote', 'no', or 'inline'.
292-
# texinfo_show_urls = 'footnote'
281+
#texinfo_show_urls = 'footnote'
293282

294283
# This pulls class descriptions from the class docstring,
295284
# and parameter definitions from the __init__ docstring.
296-
autoclass_content = "both"
285+
autoclass_content = 'both'
297286

298287
# Configuration for intersphinx:
299288
# Refer to the Python standard library and the oauth2client and
300289
# httplib2 libraries.
301290
intersphinx_mapping = {
302-
"httplib2": ("http://httplib2.readthedocs.io/en/latest/", None),
303-
"google-cloud-python": (
304-
"https://google-cloud-python.readthedocs.io/en/latest/",
305-
None,
306-
),
307-
"oauth2client": ("http://oauth2client.readthedocs.io/en/latest", None),
308-
"python": ("https://docs.python.org/2", None),
291+
'httplib2': ('http://httplib2.readthedocs.io/en/latest/', None),
292+
'google-cloud-python': (
293+
'https://google-cloud-python.readthedocs.io/en/latest/', None),
294+
'oauth2client': ('http://oauth2client.readthedocs.io/en/latest', None),
295+
'python': ('https://docs.python.org/2', None),
309296
}

src/google/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
# limitations under the License.
1414

1515
try:
16-
__import__("pkg_resources").declare_namespace(__name__)
16+
__import__('pkg_resources').declare_namespace(__name__)
1717
except ImportError:
18-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
18+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

src/google/cloud/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
# limitations under the License.
1414

1515
try:
16-
__import__("pkg_resources").declare_namespace(__name__)
16+
__import__('pkg_resources').declare_namespace(__name__)
1717
except ImportError:
18-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
18+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

0 commit comments

Comments
 (0)