Skip to content

Commit 2e2343c

Browse files
author
Hugo Osvaldo Barrera
committed
Lint the sphinx conf file
1 parent 53a0753 commit 2e2343c

1 file changed

Lines changed: 57 additions & 52 deletions

File tree

docs/source/conf.py

Lines changed: 57 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,37 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
#sys.path.append(os.path.abspath('.'))
20-
sys.path.append(os.path.abspath('..'))
19+
# sys.path.append(os.path.abspath('.'))
20+
sys.path.append(os.path.abspath(".."))
2121
from barcode import version
22-
LOGO = os.path.join('images', 'pybarcode_small.png')
22+
23+
LOGO = os.path.join("images", "pybarcode_small.png")
2324

2425
# -- General configuration -----------------------------------------------------
2526

2627
# Add any Sphinx extension module names here, as strings. They can be extensions
2728
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
2829
extensions = [
29-
'sphinx.ext.autodoc', 'sphinx.ext.graphviz',
30-
'sphinx.ext.inheritance_diagram'
30+
"sphinx.ext.autodoc",
31+
"sphinx.ext.graphviz",
32+
"sphinx.ext.inheritance_diagram",
3133
]
3234

3335
# Add any paths that contain templates here, relative to this directory.
34-
templates_path = ['_templates']
36+
templates_path = ["_templates"]
3537

3638
# The suffix of source filenames.
37-
source_suffix = '.rst'
39+
source_suffix = ".rst"
3840

3941
# The encoding of source files.
40-
#source_encoding = 'utf-8'
42+
# source_encoding = 'utf-8'
4143

4244
# The master toctree document.
43-
master_doc = 'index'
45+
master_doc = "index"
4446

4547
# General information about the project.
46-
project = 'python-barcode'
47-
copyright = '2017-2020 Hugo Osvaldo Barrera <hugo@barrera.io>, et al'
48+
project = "python-barcode"
49+
copyright = "2017-2020 Hugo Osvaldo Barrera <hugo@barrera.io>, et al"
4850

4951
# The version info for the project you're documenting, acts as replacement for
5052
# |version| and |release|, also used in various other places throughout the
@@ -57,65 +59,65 @@
5759

5860
# The language for content autogenerated by Sphinx. Refer to documentation
5961
# for a list of supported languages.
60-
#language = None
62+
# language = None
6163

6264
# There are two options for replacing |today|: either, you set today to some
6365
# non-false value, then it is used:
64-
#today = ''
66+
# today = ''
6567
# Else, today_fmt is used as the format for a strftime call.
66-
#today_fmt = '%B %d, %Y'
68+
# today_fmt = '%B %d, %Y'
6769

6870
# List of documents that shouldn't be included in the build.
69-
#unused_docs = []
71+
# unused_docs = []
7072

7173
# List of directories, relative to source directory, that shouldn't be searched
7274
# for source files.
73-
exclude_trees = ['_build']
75+
exclude_trees = ["_build"]
7476

7577
# The reST default role (used for this markup: `text`) to use for all documents.
76-
#default_role = None
78+
# default_role = None
7779

7880
# If true, '()' will be appended to :func: etc. cross-reference text.
79-
#add_function_parentheses = True
81+
# add_function_parentheses = True
8082

8183
# If true, the current module name will be prepended to all description
8284
# unit titles (such as .. function::).
83-
#add_module_names = True
85+
# add_module_names = True
8486

8587
# If true, sectionauthor and moduleauthor directives will be shown in the
8688
# output. They are ignored by default.
87-
#show_authors = False
89+
# show_authors = False
8890

8991
# The name of the Pygments (syntax highlighting) style to use.
90-
pygments_style = 'sphinx'
92+
pygments_style = "sphinx"
9193

9294
# A list of ignored prefixes for module index sorting.
93-
#modindex_common_prefix = []
95+
# modindex_common_prefix = []
9496

9597
# -- Options for HTML output ---------------------------------------------------
9698

9799
# The theme to use for HTML and HTML Help pages. See the documentation for
98100
# a list of builtin themes.
99-
html_theme = 'alabaster'
101+
html_theme = "alabaster"
100102

101103
# Theme options are theme-specific and customize the look and feel of a theme
102104
# further. For a list of options available for each theme, see the
103105
# documentation.
104106
html_theme_options = {
105-
'github_user': 'WhyNotHugo',
106-
'github_repo': 'python-barcode',
107-
'github_banner': 'true',
107+
"github_user": "WhyNotHugo",
108+
"github_repo": "python-barcode",
109+
"github_banner": "true",
108110
}
109111

110112
# Add any paths that contain custom themes here, relative to this directory.
111-
#html_theme_path = []
113+
# html_theme_path = []
112114

113115
# The name for this set of Sphinx documents. If None, it defaults to
114116
# "<project> v<release> documentation".
115-
#html_title = None
117+
# html_title = None
116118

117119
# A shorter title for the navigation bar. Default is the same as html_title.
118-
#html_short_title = None
120+
# html_short_title = None
119121

120122
# The name of an image file (relative to this directory) to place at the top
121123
# of the sidebar.
@@ -124,86 +126,89 @@
124126
# The name of an image file (within the static path) to use as favicon of the
125127
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
126128
# pixels large.
127-
#html_favicon = None
129+
# html_favicon = None
128130

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

134136
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
135137
# using the given strftime format.
136-
#html_last_updated_fmt = '%b %d, %Y'
138+
# html_last_updated_fmt = '%b %d, %Y'
137139

138140
# If true, SmartyPants will be used to convert quotes and dashes to
139141
# typographically correct entities.
140-
#html_use_smartypants = True
142+
# html_use_smartypants = True
141143

142144
# Custom sidebar templates, maps document names to template names.
143-
#html_sidebars = {}
145+
# html_sidebars = {}
144146

145147
# Additional templates that should be rendered to pages, maps page names to
146148
# template names.
147-
#html_additional_pages = {}
149+
# html_additional_pages = {}
148150

149151
# If false, no module index is generated.
150152
html_use_modindex = False
151153

152154
# If false, no index is generated.
153-
#html_use_index = True
155+
# html_use_index = True
154156

155157
# If true, the index is split into individual pages for each letter.
156-
#html_split_index = False
158+
# html_split_index = False
157159

158160
# If true, links to the reST sources are added to the pages.
159-
#html_show_sourcelink = True
161+
# html_show_sourcelink = True
160162

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

166168
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
167-
#html_file_suffix = ''
169+
# html_file_suffix = ''
168170

169171
# Output file base name for HTML help builder.
170-
htmlhelp_basename = 'pyBarcodedoc'
172+
htmlhelp_basename = "pyBarcodedoc"
171173

172174
# -- Options for LaTeX output --------------------------------------------------
173175

174176
# The paper size ('letter' or 'a4').
175-
#latex_paper_size = 'letter'
177+
# latex_paper_size = 'letter'
176178

177179
# The font size ('10pt', '11pt' or '12pt').
178-
#latex_font_size = '10pt'
180+
# latex_font_size = '10pt'
179181

180182
# Grouping the document tree into LaTeX files. List of tuples
181183
# (source start file, target name, title, author, documentclass [howto/manual]).
182184
latex_documents = [
183185
(
184-
'index', 'pyBarcode.tex', 'pyBarcode Documentation',
185-
'Thorsten Weimann', 'manual'
186+
"index",
187+
"pyBarcode.tex",
188+
"pyBarcode Documentation",
189+
"Thorsten Weimann",
190+
"manual",
186191
),
187192
]
188193

189194
# The name of an image file (relative to this directory) to place at the top of
190195
# the title page.
191-
#latex_logo = None
196+
# latex_logo = None
192197

193198
# For "manual" documents, if this is true, then toplevel headings are parts,
194199
# not chapters.
195-
#latex_use_parts = False
200+
# latex_use_parts = False
196201

197202
# Additional stuff for the LaTeX preamble.
198-
#latex_preamble = ''
203+
# latex_preamble = ''
199204

200205
# Documents to append as an appendix to all manuals.
201-
#latex_appendices = []
206+
# latex_appendices = []
202207

203208
# If false, no module index is generated.
204209
latex_use_modindex = False
205210

206-
if sys.platform.startswith('win'):
207-
graphviz_dot = r'P:\Portable\Graphviz\App\bin\dot.exe'
211+
if sys.platform.startswith("win"):
212+
graphviz_dot = r"P:\Portable\Graphviz\App\bin\dot.exe"
208213
else:
209-
graphviz_dot = '/usr/bin/dot'
214+
graphviz_dot = "/usr/bin/dot"

0 commit comments

Comments
 (0)