Skip to content

Commit abcd5a8

Browse files
committed
flake8 cleanup
1 parent b5d97ab commit abcd5a8

File tree

5 files changed

+127
-134
lines changed

5 files changed

+127
-134
lines changed

docs/conf.py

Lines changed: 53 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,15 @@
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
17-
1815
# If extensions (or modules to document with autodoc) are in another directory,
1916
# add these directories to sys.path here. If the directory is relative to the
2017
# documentation root, use os.path.abspath to make it absolute, like shown here.
21-
#sys.path.insert(0, os.path.abspath('.'))
18+
# sys.path.insert(0, os.path.abspath('.'))
2219

2320
# -- General configuration ------------------------------------------------
2421

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

2825
# Add any Sphinx extension module names here, as strings. They can be
2926
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -40,7 +37,7 @@
4037
source_suffix = '.rst'
4138

4239
# The encoding of source files.
43-
#source_encoding = 'utf-8-sig'
40+
# source_encoding = 'utf-8-sig'
4441

4542
# The master toctree document.
4643
master_doc = 'index'
@@ -60,41 +57,41 @@
6057

6158
# The language for content autogenerated by Sphinx. Refer to documentation
6259
# for a list of supported languages.
63-
#language = None
60+
# language = None
6461

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

7168
# List of patterns, relative to source directory, that match files and
7269
# directories to ignore when looking for source files.
7370
exclude_patterns = ['_build']
7471

7572
# The reST default role (used for this markup: `text`) to use for all
7673
# documents.
77-
#default_role = None
74+
# default_role = None
7875

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

8279
# If true, the current module name will be prepended to all description
8380
# unit titles (such as .. function::).
84-
#add_module_names = True
81+
# add_module_names = True
8582

8683
# If true, sectionauthor and moduleauthor directives will be shown in the
8784
# output. They are ignored by default.
88-
#show_authors = False
85+
# show_authors = False
8986

9087
# The name of the Pygments (syntax highlighting) style to use.
9188
pygments_style = 'sphinx'
9289

9390
# A list of ignored prefixes for module index sorting.
94-
#modindex_common_prefix = []
91+
# modindex_common_prefix = []
9592

9693
# If true, keep warnings as "system message" paragraphs in the built documents.
97-
#keep_warnings = False
94+
# keep_warnings = False
9895

9996

10097
# -- Options for HTML output ----------------------------------------------
@@ -106,26 +103,26 @@
106103
# Theme options are theme-specific and customize the look and feel of a theme
107104
# further. For a list of options available for each theme, see the
108105
# documentation.
109-
#html_theme_options = {}
106+
# html_theme_options = {}
110107

111108
# Add any paths that contain custom themes here, relative to this directory.
112-
#html_theme_path = []
109+
# html_theme_path = []
113110

114111
# The name for this set of Sphinx documents. If None, it defaults to
115112
# "<project> v<release> documentation".
116-
#html_title = None
113+
# html_title = None
117114

118115
# A shorter title for the navigation bar. Default is the same as html_title.
119-
#html_short_title = None
116+
# html_short_title = None
120117

121118
# The name of an image file (relative to this directory) to place at the top
122119
# of the sidebar.
123-
#html_logo = None
120+
# html_logo = None
124121

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

130127
# Add any paths that contain custom static files (such as style sheets) here,
131128
# relative to this directory. They are copied after the builtin static files,
@@ -135,93 +132,92 @@
135132
# Add any extra paths that contain custom files (such as robots.txt or
136133
# .htaccess) here, relative to this directory. These files are copied
137134
# directly to the root of the documentation.
138-
#html_extra_path = []
135+
# html_extra_path = []
139136

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

144141
# If true, SmartyPants will be used to convert quotes and dashes to
145142
# typographically correct entities.
146-
#html_use_smartypants = True
143+
# html_use_smartypants = True
147144

148145
# Custom sidebar templates, maps document names to template names.
149-
#html_sidebars = {}
146+
# html_sidebars = {}
150147

151148
# Additional templates that should be rendered to pages, maps page names to
152149
# template names.
153-
#html_additional_pages = {}
150+
# html_additional_pages = {}
154151

155152
# If false, no module index is generated.
156-
#html_domain_indices = True
153+
# html_domain_indices = True
157154

158155
# If false, no index is generated.
159-
#html_use_index = True
156+
# html_use_index = True
160157

161158
# If true, the index is split into individual pages for each letter.
162-
#html_split_index = False
159+
# html_split_index = False
163160

164161
# If true, links to the reST sources are added to the pages.
165-
#html_show_sourcelink = True
162+
# html_show_sourcelink = True
166163

167164
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
168-
#html_show_sphinx = True
165+
# html_show_sphinx = True
169166

170167
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
171-
#html_show_copyright = True
168+
# html_show_copyright = True
172169

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

178175
# This is the file name suffix for HTML files (e.g. ".xhtml").
179-
#html_file_suffix = None
176+
# html_file_suffix = None
180177

181178
# Output file base name for HTML help builder.
182179
htmlhelp_basename = 'DjangoTastypieSwaggerdoc'
183180

184-
185181
# -- Options for LaTeX output ---------------------------------------------
186182

187183
latex_elements = {
188-
# The paper size ('letterpaper' or 'a4paper').
189-
#'papersize': 'letterpaper',
184+
# The paper size ('letterpaper' or 'a4paper').
185+
# 'papersize': 'letterpaper',
190186

191-
# The font size ('10pt', '11pt' or '12pt').
192-
#'pointsize': '10pt',
187+
# The font size ('10pt', '11pt' or '12pt').
188+
# 'pointsize': '10pt',
193189

194-
# Additional stuff for the LaTeX preamble.
195-
#'preamble': '',
190+
# Additional stuff for the LaTeX preamble.
191+
# 'preamble': '',
196192
}
197193

198194
# Grouping the document tree into LaTeX files. List of tuples
199195
# (source start file, target name, title,
200196
# author, documentclass [howto, manual, or own class]).
201197
latex_documents = [
202-
('index', 'DjangoTastypieSwagger.tex', u'Django Tastypie Swagger Documentation',
203-
u'Kyle Rimkus, Josh Bothun', 'manual'),
198+
('index', 'DjangoTastypieSwagger.tex', u'Django Tastypie Swagger Documentation',
199+
u'Kyle Rimkus, Josh Bothun', 'manual'),
204200
]
205201

206202
# The name of an image file (relative to this directory) to place at the top of
207203
# the title page.
208-
#latex_logo = None
204+
# latex_logo = None
209205

210206
# For "manual" documents, if this is true, then toplevel headings are parts,
211207
# not chapters.
212-
#latex_use_parts = False
208+
# latex_use_parts = False
213209

214210
# If true, show page references after internal links.
215-
#latex_show_pagerefs = False
211+
# latex_show_pagerefs = False
216212

217213
# If true, show URL addresses after external links.
218-
#latex_show_urls = False
214+
# latex_show_urls = False
219215

220216
# Documents to append as an appendix to all manuals.
221-
#latex_appendices = []
217+
# latex_appendices = []
222218

223219
# If false, no module index is generated.
224-
#latex_domain_indices = True
220+
# latex_domain_indices = True
225221

226222

227223
# -- Options for manual page output ---------------------------------------
@@ -234,7 +230,7 @@
234230
]
235231

236232
# If true, show URL addresses after external links.
237-
#man_show_urls = False
233+
# man_show_urls = False
238234

239235

240236
# -- Options for Texinfo output -------------------------------------------
@@ -243,19 +239,19 @@
243239
# (source start file, target name, title, author,
244240
# dir menu entry, description, category)
245241
texinfo_documents = [
246-
('index', 'DjangoTastypieSwagger', u'Django Tastypie Swagger Documentation',
247-
u'Kyle Rimkus, Josh Bothun', 'DjangoTastypieSwagger', 'One line description of project.',
248-
'Miscellaneous'),
242+
('index', 'DjangoTastypieSwagger', u'Django Tastypie Swagger Documentation',
243+
u'Kyle Rimkus, Josh Bothun', 'DjangoTastypieSwagger', 'One line description of project.',
244+
'Miscellaneous'),
249245
]
250246

251247
# Documents to append as an appendix to all manuals.
252-
#texinfo_appendices = []
248+
# texinfo_appendices = []
253249

254250
# If false, no module index is generated.
255-
#texinfo_domain_indices = True
251+
# texinfo_domain_indices = True
256252

257253
# How to display URL addresses: 'footnote', 'no', or 'inline'.
258-
#texinfo_show_urls = 'footnote'
254+
# texinfo_show_urls = 'footnote'
259255

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
],
3636
extras_require={
3737
'dev': [
38-
'swagger_spec_validator' # https://github.com/Yelp/swagger_spec_validator
38+
'swagger_spec_validator' # https://github.com/Yelp/swagger_spec_validator
3939
],
4040
}
4141
)

0 commit comments

Comments
 (0)