From 3909ee781b649ce71e09a0e01e200e7364e4dda6 Mon Sep 17 00:00:00 2001 From: Daniel Maksymilian Syrnicki Date: Wed, 15 Apr 2026 08:46:58 +0200 Subject: [PATCH] style: ruff format webinstaller/app.py Co-Authored-By: Claude Opus 4.6 (1M context) --- webinstaller/app.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/webinstaller/app.py b/webinstaller/app.py index d5d5e01..fd35a31 100644 --- a/webinstaller/app.py +++ b/webinstaller/app.py @@ -428,9 +428,7 @@ def _post_install_commands(hostname): ) # Pin the chosen hostname into the static HTML at install-time so the # landing page doesn't need a server-side template. - hostname_sed = ( - f"sed -i 's/__HOSTNAME__/{hostname}/g' /srv/furtka/www/index.html" - ) + hostname_sed = f"sed -i 's/__HOSTNAME__/{hostname}/g' /srv/furtka/www/index.html" return [ _write_file_cmd("/etc/caddy/Caddyfile", _CADDYFILE), _write_file_cmd("/srv/furtka/www/index.html", _INDEX_HTML), @@ -438,15 +436,9 @@ def _post_install_commands(hostname): _write_file_cmd("/srv/furtka/www/status.json", _STATUS_JSON_PLACEHOLDER), _write_file_cmd("/usr/local/bin/furtka-status", _FURTKA_STATUS_SH, mode="755"), _write_file_cmd("/usr/local/bin/furtka-welcome", _FURTKA_WELCOME_SH, mode="755"), - _write_file_cmd( - "/etc/systemd/system/furtka-status.service", _FURTKA_STATUS_SERVICE - ), - _write_file_cmd( - "/etc/systemd/system/furtka-status.timer", _FURTKA_STATUS_TIMER - ), - _write_file_cmd( - "/etc/systemd/system/furtka-welcome.service", _FURTKA_WELCOME_SERVICE - ), + _write_file_cmd("/etc/systemd/system/furtka-status.service", _FURTKA_STATUS_SERVICE), + _write_file_cmd("/etc/systemd/system/furtka-status.timer", _FURTKA_STATUS_TIMER), + _write_file_cmd("/etc/systemd/system/furtka-welcome.service", _FURTKA_WELCOME_SERVICE), nss_sed, hostname_sed, # archinstall calls `systemctl enable` on `services` *before*