Skip to content

Commit ae36e3f

Browse files
committed
Black black black!
1 parent 800194a commit ae36e3f

File tree

2 files changed

+88
-78
lines changed

2 files changed

+88
-78
lines changed

docs/conf.py

Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
import sys
2121
from pkg_resources import get_distribution
2222

23-
sys.path.insert(0, os.path.abspath('..'))
24-
sys.path.insert(0, os.path.abspath('../src'))
23+
sys.path.insert(0, os.path.abspath(".."))
24+
sys.path.insert(0, os.path.abspath("../src"))
2525

26-
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
26+
os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings"
2727

2828
# -- General configuration ------------------------------------------------
2929

@@ -35,41 +35,41 @@
3535
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3636
# ones.
3737
extensions = [
38-
'sphinx.ext.autodoc',
39-
'sphinx.ext.intersphinx',
40-
'sphinx.ext.viewcode',
41-
'sphinxcontrib.httpdomain',
38+
"sphinx.ext.autodoc",
39+
"sphinx.ext.intersphinx",
40+
"sphinx.ext.viewcode",
41+
"sphinxcontrib.httpdomain",
4242
]
4343

4444
# Add any paths that contain templates here, relative to this directory.
45-
templates_path = ['_templates']
45+
templates_path = ["_templates"]
4646

4747
# The suffix(es) of source filenames.
4848
# You can specify multiple suffix as a list of string:
4949
#
5050
# source_suffix = ['.rst', '.md']
51-
source_suffix = '.rst'
51+
source_suffix = ".rst"
5252

5353
# The encoding of source files.
5454
#
5555
# source_encoding = 'utf-8-sig'
5656

5757
# The master toctree document.
58-
master_doc = 'index'
58+
master_doc = "index"
5959

6060
# General information about the project.
61-
project = u'python-dockerflow'
62-
copyright = u'2016, Mozilla Foundation'
63-
author = u'Mozilla Foundation'
61+
project = u"python-dockerflow"
62+
copyright = u"2016, Mozilla Foundation"
63+
author = u"Mozilla Foundation"
6464

6565
# The version info for the project you're documenting, acts as replacement for
6666
# |version| and |release|, also used in various other places throughout the
6767
# built documents.
6868
#
6969
# The full version, including alpha/beta/rc tags.
70-
release = get_distribution('dockerflow').version
70+
release = get_distribution("dockerflow").version
7171
# The short X.Y version.
72-
version = '.'.join(release.split('.')[:2])
72+
version = ".".join(release.split(".")[:2])
7373

7474
# The language for content autogenerated by Sphinx. Refer to documentation
7575
# for a list of supported languages.
@@ -90,7 +90,7 @@
9090
# List of patterns, relative to source directory, that match files and
9191
# directories to ignore when looking for source files.
9292
# This patterns also effect to html_static_path and html_extra_path
93-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
93+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
9494

9595
# The reST default role (used for this markup: `text`) to use for all
9696
# documents.
@@ -112,7 +112,7 @@
112112
# show_authors = False
113113

114114
# The name of the Pygments (syntax highlighting) style to use.
115-
pygments_style = 'sphinx'
115+
pygments_style = "sphinx"
116116

117117
# A list of ignored prefixes for module index sorting.
118118
# modindex_common_prefix = []
@@ -129,7 +129,7 @@
129129
# The theme to use for HTML and HTML Help pages. See the documentation for
130130
# a list of builtin themes.
131131
#
132-
html_theme = 'default'
132+
html_theme = "default"
133133

134134
# Theme options are theme-specific and customize the look and feel of a theme
135135
# further. For a list of options available for each theme, see the
@@ -243,34 +243,36 @@
243243
# html_search_scorer = 'scorer.js'
244244

245245
# Output file base name for HTML help builder.
246-
htmlhelp_basename = 'python-dockerflowdoc'
246+
htmlhelp_basename = "python-dockerflowdoc"
247247

248248
# -- Options for LaTeX output ---------------------------------------------
249249

250250
latex_elements = {
251-
# The paper size ('letterpaper' or 'a4paper').
252-
#
253-
# 'papersize': 'letterpaper',
254-
255-
# The font size ('10pt', '11pt' or '12pt').
256-
#
257-
# 'pointsize': '10pt',
258-
259-
# Additional stuff for the LaTeX preamble.
260-
#
261-
# 'preamble': '',
262-
263-
# Latex figure (float) alignment
264-
#
265-
# 'figure_align': 'htbp',
251+
# The paper size ('letterpaper' or 'a4paper').
252+
#
253+
# 'papersize': 'letterpaper',
254+
# The font size ('10pt', '11pt' or '12pt').
255+
#
256+
# 'pointsize': '10pt',
257+
# Additional stuff for the LaTeX preamble.
258+
#
259+
# 'preamble': '',
260+
# Latex figure (float) alignment
261+
#
262+
# 'figure_align': 'htbp',
266263
}
267264

268265
# Grouping the document tree into LaTeX files. List of tuples
269266
# (source start file, target name, title,
270267
# author, documentclass [howto, manual, or own class]).
271268
latex_documents = [
272-
(master_doc, 'python-dockerflow.tex', u'python-dockerflow Documentation',
273-
u'Mozilla Foundation', 'manual'),
269+
(
270+
master_doc,
271+
"python-dockerflow.tex",
272+
u"python-dockerflow Documentation",
273+
u"Mozilla Foundation",
274+
"manual",
275+
)
274276
]
275277

276278
# The name of an image file (relative to this directory) to place at the top of
@@ -311,8 +313,7 @@
311313
# One entry per manual page. List of tuples
312314
# (source start file, name, description, authors, manual section).
313315
man_pages = [
314-
(master_doc, 'python-dockerflow', u'python-dockerflow Documentation',
315-
[author], 1)
316+
(master_doc, "python-dockerflow", u"python-dockerflow Documentation", [author], 1)
316317
]
317318

318319
# If true, show URL addresses after external links.
@@ -326,9 +327,15 @@
326327
# (source start file, target name, title, author,
327328
# dir menu entry, description, category)
328329
texinfo_documents = [
329-
(master_doc, 'python-dockerflow', u'python-dockerflow Documentation',
330-
author, 'python-dockerflow', 'One line description of project.',
331-
'Miscellaneous'),
330+
(
331+
master_doc,
332+
"python-dockerflow",
333+
u"python-dockerflow Documentation",
334+
author,
335+
"python-dockerflow",
336+
"One line description of project.",
337+
"Miscellaneous",
338+
)
332339
]
333340

334341
# Documents to append as an appendix to all manuals.
@@ -350,12 +357,14 @@
350357

351358
# Example configuration for intersphinx: refer to the Python standard library.
352359
intersphinx_mapping = {
353-
'django': ('http://docs.djangoproject.com/en/stable/',
354-
'http://docs.djangoproject.com/en/stable/_objects/'),
355-
'flask': ('http://flask.pocoo.org/docs/', None),
356-
'redis-py': ('https://redis-py.readthedocs.io/en/latest/', None),
357-
'flask-sqlalchemy': ('https://flask-sqlalchemy.readthedocs.io/en/2.x/', None),
358-
'python': ('https://docs.python.org/', None),
359-
'whitenoise': ('https://whitenoise.readthedocs.io/en/stable/', None),
360-
'sanic': ('https://sanic.readthedocs.io/en/stable/', None),
360+
"django": (
361+
"http://docs.djangoproject.com/en/stable/",
362+
"http://docs.djangoproject.com/en/stable/_objects/",
363+
),
364+
"flask": ("http://flask.pocoo.org/docs/", None),
365+
"redis-py": ("https://redis-py.readthedocs.io/en/latest/", None),
366+
"flask-sqlalchemy": ("https://flask-sqlalchemy.readthedocs.io/en/2.x/", None),
367+
"python": ("https://docs.python.org/", None),
368+
"whitenoise": ("https://whitenoise.readthedocs.io/en/stable/", None),
369+
"sanic": ("https://sanic.readthedocs.io/en/stable/", None),
361370
}

setup.py

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,44 @@
55

66
def read(*parts):
77
filename = os.path.join(os.path.dirname(__file__), *parts)
8-
with codecs.open(filename, encoding='utf-8') as fp:
8+
with codecs.open(filename, encoding="utf-8") as fp:
99
return fp.read()
1010

1111

1212
setup(
13-
name='dockerflow',
14-
use_scm_version={
15-
'version_scheme': 'post-release',
16-
'local_scheme': 'dirty-tag'
17-
},
18-
setup_requires=['setuptools_scm'],
19-
packages=find_packages(where='src'),
20-
package_dir={'': 'src'},
13+
name="dockerflow",
14+
use_scm_version={"version_scheme": "post-release", "local_scheme": "dirty-tag"},
15+
setup_requires=["setuptools_scm"],
16+
packages=find_packages(where="src"),
17+
package_dir={"": "src"},
2118
description="Python tools and helpers for Mozilla's Dockerflow",
22-
long_description=read('README.rst'),
23-
author='Mozilla Foundation',
24-
author_email='[email protected]',
25-
url='https://github.com/mozilla-services/python-dockerflow',
26-
license='MPL 2.0',
19+
long_description=read("README.rst"),
20+
author="Mozilla Foundation",
21+
author_email="[email protected]",
22+
url="https://github.com/mozilla-services/python-dockerflow",
23+
license="MPL 2.0",
2724
classifiers=[
28-
'Development Status :: 5 - Production/Stable',
29-
'Environment :: Web Environment :: Mozilla',
30-
'Framework :: Django',
31-
'Intended Audience :: Developers',
32-
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
33-
'Programming Language :: Python',
34-
'Programming Language :: Python :: 2',
35-
'Programming Language :: Python :: 2.7',
36-
'Programming Language :: Python :: 3',
37-
'Programming Language :: Python :: 3.6',
38-
'Programming Language :: Python :: 3.7',
39-
'Topic :: Internet :: WWW/HTTP',
25+
"Development Status :: 5 - Production/Stable",
26+
"Environment :: Web Environment :: Mozilla",
27+
"Framework :: Django",
28+
"Framework :: Django :: 1.11",
29+
"Framework :: Django :: 2.1",
30+
"Framework :: Django :: 2.2",
31+
"Framework :: Flask",
32+
"Intended Audience :: Developers",
33+
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
34+
"Programming Language :: Python",
35+
"Programming Language :: Python :: 2",
36+
"Programming Language :: Python :: 2.7",
37+
"Programming Language :: Python :: 3",
38+
"Programming Language :: Python :: 3.6",
39+
"Programming Language :: Python :: 3.7",
40+
"Topic :: Internet :: WWW/HTTP",
4041
],
4142
extras_require={
42-
'django': ['django'],
43-
'flask': ['flask', 'blinker'],
44-
'sanic': ['sanic'],
43+
"django": ["django"],
44+
"flask": ["flask", "blinker"],
45+
"sanic": ["sanic"],
4546
},
4647
zip_safe=False,
4748
)

0 commit comments

Comments
 (0)