Skip to content

Commit

Permalink
Black formatter: others
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Feb 9, 2025
1 parent c5dfc4b commit 0f79c75
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 34 deletions.
69 changes: 37 additions & 32 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))

sys.path.insert(0, os.path.abspath("../.."))

import sphinx_rtd_theme


# -- Project information -----------------------------------------------------

project = 'androidtv'
copyright = '2020, Jeff Irion'
author = 'Jeff Irion'
project = "androidtv"
copyright = "2020, Jeff Irion"
author = "Jeff Irion"

# The short X.Y version
version = '0.0.75'
version = "0.0.75"
# The full version, including alpha/beta/rc tags
release = '0.0.75'
release = "0.0.75"


# -- General configuration ---------------------------------------------------
Expand All @@ -41,24 +42,24 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.autodoc',
'sphinx.ext.napoleon'
"sphinx.ext.todo",
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
]

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

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_suffix = ".rst"

# The master toctree document.
master_doc = 'index'
master_doc = "index"

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

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

autodoc_mock_imports = ['adb', 'adb_messenger']
autodoc_mock_imports = ["adb", "adb_messenger"]

autodoc_default_options = {'members': True, 'undoc-members': True, 'private-members': True, 'show-inheritance': True}
autodoc_default_options = {
"members": True,
"undoc-members": True,
"private-members": True,
"show-inheritance": True,
}

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

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = "sphinx_rtd_theme"

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

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

# Output file base name for HTML help builder.
htmlhelp_basename = 'androidtvdoc'
htmlhelp_basename = "androidtvdoc"


# -- Options for LaTeX output ------------------------------------------------
Expand All @@ -120,15 +126,12 @@
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

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

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

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
Expand All @@ -138,19 +141,15 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'androidtv.tex', 'androidtv Documentation',
'Jeff Irion', 'manual'),
(master_doc, "androidtv.tex", "androidtv Documentation", "Jeff Irion", "manual"),
]


# -- 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, 'androidtv', 'androidtv Documentation',
[author], 1)
]
man_pages = [(master_doc, "androidtv", "androidtv Documentation", [author], 1)]


# -- Options for Texinfo output ----------------------------------------------
Expand All @@ -159,9 +158,15 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'androidtv', 'androidtv Documentation',
author, 'androidtv', 'One line description of project.',
'Miscellaneous'),
(
master_doc,
"androidtv",
"androidtv Documentation",
author,
"androidtv",
"One line description of project.",
"Miscellaneous",
),
]


Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@
license="MIT",
author="Jeff Irion",
author_email="[email protected]",
packages=["androidtv", "androidtv.adb_manager", "androidtv.basetv", "androidtv.androidtv", "androidtv.firetv"],
packages=[
"androidtv",
"androidtv.adb_manager",
"androidtv.basetv",
"androidtv.androidtv",
"androidtv.firetv",
],
install_requires=["adb-shell>=0.4.0", "pure-python-adb>=0.3.0.dev0"],
extras_require={"async": ["aiofiles>=0.4.0", "async_timeout>=3.0.0"], "usb": ["adb-shell[usb]>=0.4.0"]},
extras_require={
"async": ["aiofiles>=0.4.0", "async_timeout>=3.0.0"],
"usb": ["adb-shell[usb]>=0.4.0"],
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down

0 comments on commit 0f79c75

Please sign in to comment.