apply black to the whole codebase.

This commit is contained in:
Goffi 2026-03-09 09:22:04 +01:00
commit 82e2c6efac

View file

@ -67,13 +67,11 @@ PLUGIN_INFO = {
C.PI_MODES: C.PLUG_MODE_BOTH,
C.PI_MAIN: "AppManager",
C.PI_HANDLER: "no",
C.PI_DESCRIPTION: _(
"""Applications Manager
C.PI_DESCRIPTION: _("""Applications Manager
Manage external applications using packagers, OS virtualization/containers or other
software management tools.
"""
),
"""),
}
APP_FILE_PREFIX = "libervia_app_"
@ -150,7 +148,7 @@ class AppManager:
)
data["_instance_dir_obj"].cleanup()
def _libervia_conf_constr(self, loader, node) -> str|None:
def _libervia_conf_constr(self, loader, node) -> str | None:
"""Get a value from Libervia configuration
A list is expected with either "name" of a config parameter, a one or more of
@ -180,14 +178,16 @@ class AppManager:
try:
if section.startswith("application."):
key = section[12:].strip()
key = section[12:].strip()
if not key:
raise ValueError("Invalid configuration section: {section!r}}")
value = G.config.application.get(key, {}).get(name, default)
else:
value = getattr(getattr(G.config, section), name) or default
except (AttributeError, KeyError):
from pudb import set_trace; set_trace()
from pudb import set_trace
set_trace()
raise ValueError(
f"Invalid configuration request: {section=}, {name=}, {default=}, "
f"{filter=}"