Merge pull request #1446 from YunoHost/ci-format-dev

[CI] Format code with Black
This commit is contained in:
Alexandre Aubin 2022-03-08 13:17:07 +01:00 committed by GitHub
commit d11f32141e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View file

@ -140,7 +140,9 @@ def regen_conf(
# though kinda tight-coupled to the postinstall logic :s
if os.path.exists("/etc/yunohost/installed"):
env["YNH_DOMAINS"] = " ".join(domain_list()["domains"])
env["YNH_MAIN_DOMAINS"] = " ".join(domain_list(exclude_subdomains=True)["domains"])
env["YNH_MAIN_DOMAINS"] = " ".join(
domain_list(exclude_subdomains=True)["domains"]
)
pre_result = hook_callback("conf_regen", names, pre_callback=_pre_call, env=env)

View file

@ -36,10 +36,7 @@ from moulinette.utils.log import getActionLogger
from moulinette.utils.process import call_async_output
from moulinette.utils.filesystem import read_yaml, write_to_yaml, cp, mkdir, rm
from yunohost.app import (
app_upgrade,
app_list
)
from yunohost.app import app_upgrade, app_list
from yunohost.app_catalog import (
_initialize_apps_catalog_system,
_update_apps_catalog,