Skip to content

Commit 0f79c75

Browse files
committed
Black formatter: others
1 parent c5dfc4b commit 0f79c75

File tree

2 files changed

+48
-34
lines changed

2 files changed

+48
-34
lines changed

docs/source/conf.py

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,22 @@
1414
#
1515
import os
1616
import sys
17-
sys.path.insert(0, os.path.abspath('../..'))
17+
18+
sys.path.insert(0, os.path.abspath("../.."))
1819

1920
import sphinx_rtd_theme
2021

2122

2223
# -- Project information -----------------------------------------------------
2324

24-
project = 'androidtv'
25-
copyright = '2020, Jeff Irion'
26-
author = 'Jeff Irion'
25+
project = "androidtv"
26+
copyright = "2020, Jeff Irion"
27+
author = "Jeff Irion"
2728

2829
# The short X.Y version
29-
version = '0.0.75'
30+
version = "0.0.75"
3031
# The full version, including alpha/beta/rc tags
31-
release = '0.0.75'
32+
release = "0.0.75"
3233

3334

3435
# -- General configuration ---------------------------------------------------
@@ -41,24 +42,24 @@
4142
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4243
# ones.
4344
extensions = [
44-
'sphinx.ext.todo',
45-
'sphinx.ext.mathjax',
46-
'sphinx.ext.viewcode',
47-
'sphinx.ext.autodoc',
48-
'sphinx.ext.napoleon'
45+
"sphinx.ext.todo",
46+
"sphinx.ext.mathjax",
47+
"sphinx.ext.viewcode",
48+
"sphinx.ext.autodoc",
49+
"sphinx.ext.napoleon",
4950
]
5051

5152
# Add any paths that contain templates here, relative to this directory.
52-
templates_path = ['_templates']
53+
templates_path = ["_templates"]
5354

5455
# The suffix(es) of source filenames.
5556
# You can specify multiple suffix as a list of string:
5657
#
5758
# source_suffix = ['.rst', '.md']
58-
source_suffix = '.rst'
59+
source_suffix = ".rst"
5960

6061
# The master toctree document.
61-
master_doc = 'index'
62+
master_doc = "index"
6263

6364
# The language for content autogenerated by Sphinx. Refer to documentation
6465
# for a list of supported languages.
@@ -73,18 +74,23 @@
7374
exclude_patterns = []
7475

7576
# The name of the Pygments (syntax highlighting) style to use.
76-
pygments_style = 'sphinx'
77+
pygments_style = "sphinx"
7778

78-
autodoc_mock_imports = ['adb', 'adb_messenger']
79+
autodoc_mock_imports = ["adb", "adb_messenger"]
7980

80-
autodoc_default_options = {'members': True, 'undoc-members': True, 'private-members': True, 'show-inheritance': True}
81+
autodoc_default_options = {
82+
"members": True,
83+
"undoc-members": True,
84+
"private-members": True,
85+
"show-inheritance": True,
86+
}
8187

8288
# -- Options for HTML output -------------------------------------------------
8389

8490
# The theme to use for HTML and HTML Help pages. See the documentation for
8591
# a list of builtin themes.
8692
#
87-
html_theme = 'sphinx_rtd_theme'
93+
html_theme = "sphinx_rtd_theme"
8894

8995
# Theme options are theme-specific and customize the look and feel of a theme
9096
# further. For a list of options available for each theme, see the
@@ -95,7 +101,7 @@
95101
# Add any paths that contain custom static files (such as style sheets) here,
96102
# relative to this directory. They are copied after the builtin static files,
97103
# so a file named "default.css" will overwrite the builtin "default.css".
98-
html_static_path = ['_static']
104+
html_static_path = ["_static"]
99105

100106
# Custom sidebar templates, must be a dictionary that maps document names
101107
# to template names.
@@ -111,7 +117,7 @@
111117
# -- Options for HTMLHelp output ---------------------------------------------
112118

113119
# Output file base name for HTML help builder.
114-
htmlhelp_basename = 'androidtvdoc'
120+
htmlhelp_basename = "androidtvdoc"
115121

116122

117123
# -- Options for LaTeX output ------------------------------------------------
@@ -120,15 +126,12 @@
120126
# The paper size ('letterpaper' or 'a4paper').
121127
#
122128
# 'papersize': 'letterpaper',
123-
124129
# The font size ('10pt', '11pt' or '12pt').
125130
#
126131
# 'pointsize': '10pt',
127-
128132
# Additional stuff for the LaTeX preamble.
129133
#
130134
# 'preamble': '',
131-
132135
# Latex figure (float) alignment
133136
#
134137
# 'figure_align': 'htbp',
@@ -138,19 +141,15 @@
138141
# (source start file, target name, title,
139142
# author, documentclass [howto, manual, or own class]).
140143
latex_documents = [
141-
(master_doc, 'androidtv.tex', 'androidtv Documentation',
142-
'Jeff Irion', 'manual'),
144+
(master_doc, "androidtv.tex", "androidtv Documentation", "Jeff Irion", "manual"),
143145
]
144146

145147

146148
# -- Options for manual page output ------------------------------------------
147149

148150
# One entry per manual page. List of tuples
149151
# (source start file, name, description, authors, manual section).
150-
man_pages = [
151-
(master_doc, 'androidtv', 'androidtv Documentation',
152-
[author], 1)
153-
]
152+
man_pages = [(master_doc, "androidtv", "androidtv Documentation", [author], 1)]
154153

155154

156155
# -- Options for Texinfo output ----------------------------------------------
@@ -159,9 +158,15 @@
159158
# (source start file, target name, title, author,
160159
# dir menu entry, description, category)
161160
texinfo_documents = [
162-
(master_doc, 'androidtv', 'androidtv Documentation',
163-
author, 'androidtv', 'One line description of project.',
164-
'Miscellaneous'),
161+
(
162+
master_doc,
163+
"androidtv",
164+
"androidtv Documentation",
165+
author,
166+
"androidtv",
167+
"One line description of project.",
168+
"Miscellaneous",
169+
),
165170
]
166171

167172

setup.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@
1515
license="MIT",
1616
author="Jeff Irion",
1717
author_email="[email protected]",
18-
packages=["androidtv", "androidtv.adb_manager", "androidtv.basetv", "androidtv.androidtv", "androidtv.firetv"],
18+
packages=[
19+
"androidtv",
20+
"androidtv.adb_manager",
21+
"androidtv.basetv",
22+
"androidtv.androidtv",
23+
"androidtv.firetv",
24+
],
1925
install_requires=["adb-shell>=0.4.0", "pure-python-adb>=0.3.0.dev0"],
20-
extras_require={"async": ["aiofiles>=0.4.0", "async_timeout>=3.0.0"], "usb": ["adb-shell[usb]>=0.4.0"]},
26+
extras_require={
27+
"async": ["aiofiles>=0.4.0", "async_timeout>=3.0.0"],
28+
"usb": ["adb-shell[usb]>=0.4.0"],
29+
},
2130
classifiers=[
2231
"License :: OSI Approved :: MIT License",
2332
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)