Skip to content

Commit

Permalink
yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumiracle committed Feb 10, 2020
1 parent 85b5340 commit b4df42c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 35 deletions.
6 changes: 1 addition & 5 deletions docker/pypi_list.py
Expand Up @@ -32,11 +32,7 @@
logger.debug("prerelease: %s" % args.prerelease)
logger.debug("debug: %s" % args.debug)

finder = pip._internal.index.PackageFinder(
[],
['https://pypi.python.org/simple'],
session=requests.Session()
)
finder = pip._internal.index.PackageFinder([], ['https://pypi.python.org/simple'], session=requests.Session())
results = finder.find_all_candidates(args.package)
tmp_versions = [str(p.version) for p in results]

Expand Down
5 changes: 1 addition & 4 deletions docker/version_prefix.py
Expand Up @@ -6,10 +6,7 @@
parser = argparse.ArgumentParser(description='Determine the version prefix to apply depending on the version name')

parser.add_argument(
'--version',
type=str,
required=True,
help='The Package Version to be installed in the container'
'--version', type=str, required=True, help='The Package Version to be installed in the container'
)

parser.add_argument('--debug', help='Print debug information', action='store_true')
Expand Down
45 changes: 19 additions & 26 deletions docs/conf.py
Expand Up @@ -19,7 +19,7 @@
#
import os, sys, datetime
sys.path.insert(0, os.path.abspath("../")) # Important
sys.path.insert(0, os.path.abspath(os.path.join("..", "tensorlayer"))) # Important
sys.path.insert(0, os.path.abspath(os.path.join("..", "tensorlayer"))) # Important

from package_info import __shortversion__
from package_info import __version__
Expand Down Expand Up @@ -159,7 +159,6 @@
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False


# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down Expand Up @@ -284,29 +283,28 @@
# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'TensorLayer.tex', 'TensorLayer Documentation',
'TensorLayer contributors', 'manual'),
(master_doc, 'TensorLayer.tex', 'TensorLayer Documentation', 'TensorLayer contributors', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -335,30 +333,26 @@
#
# latex_domain_indices = True


# -- Options for manual page output ---------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'tensorlayer', 'TensorLayer Documentation',
[author], 1)
]
man_pages = [(master_doc, 'tensorlayer', 'TensorLayer Documentation', [author], 1)]

# If true, show URL addresses after external links.
#
# man_show_urls = False


# -- Options for Texinfo output -------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'TensorLayer', 'TensorLayer Documentation',
author, 'TensorLayer', 'Deep learning and Reinforcement learning library for Researchers and Engineers.',
'Miscellaneous'),
(
master_doc, 'TensorLayer', 'TensorLayer Documentation', author, 'TensorLayer',
'Deep learning and Reinforcement learning library for Researchers and Engineers.', 'Miscellaneous'
),
]

# Documents to append as an appendix to all manuals.
Expand All @@ -377,7 +371,6 @@
#
# texinfo_no_detailmenu = False


# -- Options for Epub output ----------------------------------------------

# Bibliographic Dublin Core info.
Expand Down

0 comments on commit b4df42c

Please sign in to comment.