diff --git a/bumblebee-status b/bumblebee-status index 286f630..9828d2b 100755 --- a/bumblebee-status +++ b/bumblebee-status @@ -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) diff --git a/core/config.py b/core/config.py index 5b42c93..67d6854 100644 --- a/core/config.py +++ b/core/config.py @@ -94,8 +94,12 @@ class print_usage(argparse.Action): doc = doc.replace(">", "\>") doc = doc.replace("\n", "
") - if os.path.exists(os.path.join(basepath, 'screenshots', '{}.png'.format(m))): - doc = '{}

![{}](../screenshots/{}.png)'.format(doc, m, m) + if os.path.exists( + os.path.join(basepath, "screenshots", "{}.png".format(m)) + ): + doc = "{}

![{}](../screenshots/{}.png)".format( + doc, m, m + ) print("|{} |{} |".format(m, doc)) else: diff --git a/docs/conf.py b/docs/conf.py index 043df86..0b98e57 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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"] diff --git a/modules/contrib/octoprint.py b/modules/contrib/octoprint.py index 703a93d..f3e546a 100644 --- a/modules/contrib/octoprint.py +++ b/modules/contrib/octoprint.py @@ -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