[all] re-apply black

This commit is contained in:
tobi-wan-kenobi 2020-05-04 20:12:02 +02:00
parent 98dd8ca5f7
commit 7aa201dd30
4 changed files with 29 additions and 13 deletions

View file

@ -116,9 +116,21 @@ if __name__ == "__main__":
main()
except Exception as e:
# really basic errors -> make sure these are shown in the status bar by minimal config
sys.stdout.write("{\"version\":1}\n[\n")
sys.stdout.write('{"version":1}\n[\n')
while True:
sys.stdout.write(json.dumps([{ "full_text": " {} ".format(e), "background": "#ff0000", "color": "#ffffff", "name": "error", "instance": "the-only-one" }]))
sys.stdout.write(
json.dumps(
[
{
"full_text": " {} ".format(e),
"background": "#ff0000",
"color": "#ffffff",
"name": "error",
"instance": "the-only-one",
}
]
)
)
sys.stdout.write(",\n")
sys.stdout.flush()
time.sleep(5)

View file

@ -94,8 +94,12 @@ class print_usage(argparse.Action):
doc = doc.replace(">", "\>")
doc = doc.replace("\n", "<br />")
if os.path.exists(os.path.join(basepath, 'screenshots', '{}.png'.format(m))):
doc = '{}<p /><p />![{}](../screenshots/{}.png)'.format(doc, m, m)
if os.path.exists(
os.path.join(basepath, "screenshots", "{}.png".format(m))
):
doc = "{}<p /><p />![{}](../screenshots/{}.png)".format(
doc, m, m
)
print("|{} |{} |".format(m, doc))
else:

View file

@ -17,9 +17,9 @@
# -- Project information -----------------------------------------------------
project = 'bumblebee-status'
copyright = '2020, tobi-wan-kenobi'
author = 'tobi-wan-kenobi'
project = "bumblebee-status"
copyright = "2020, tobi-wan-kenobi"
author = "tobi-wan-kenobi"
# -- General configuration ---------------------------------------------------
@ -27,16 +27,15 @@ author = 'tobi-wan-kenobi'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
]
extensions = []
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# -- Options for HTML output -------------------------------------------------
@ -44,9 +43,9 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# 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"
# 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"]

View file

@ -248,4 +248,5 @@ class Module(core.module.Module):
self.__webcam_images_queue = None
self.__webcam_images_worker.stop()
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4