style: fix lint errors (line length, import sort)

This commit is contained in:
2026-07-05 15:52:41 -07:00
parent d14b9eafa7
commit f641e7f8d3
3 changed files with 10 additions and 3 deletions

View File

@@ -126,7 +126,10 @@ def run_info(args: argparse.Namespace) -> int:
if service.tcp_port is not None: if service.tcp_port is not None:
# Raw-TCP reach is internal-only (public TCP is rejected at load, see # Raw-TCP reach is internal-only (public TCP is rejected at load, see
# SystemdDeployment._validate_reach), so there's no "public" state here. # SystemdDeployment._validate_reach), so there's no "public" state here.
print(f" {BOLD}tcp{RESET}: {name}.<gateway.domain>:{service.tcp_port} (internal)") print(
f" {BOLD}tcp{RESET}: "
f"{name}.<gateway.domain>:{service.tcp_port} (internal)"
)
if service.manage and service.manage.systemd: if service.manage and service.manage.systemd:
sd = service.manage.systemd sd = service.manage.systemd
print(f" {BOLD}systemd{RESET}: enabled={sd.enable}, restart={sd.restart.value}") print(f" {BOLD}systemd{RESET}: enabled={sd.enable}, restart={sd.restart.value}")

View File

@@ -13,9 +13,10 @@ import argparse
import hashlib import hashlib
from datetime import datetime, timezone from datetime import datetime, timezone
from castle_cli.config import load_config
from castle_core.tls import _tls_of, reconcile_tls, tls_dir_for, wildcard_cert from castle_core.tls import _tls_of, reconcile_tls, tls_dir_for, wildcard_cert
from castle_cli.config import load_config
def run_tls(args: argparse.Namespace) -> int: def run_tls(args: argparse.Namespace) -> int:
if getattr(args, "tls_command", None) == "status": if getattr(args, "tls_command", None) == "status":

View File

@@ -149,7 +149,10 @@ def _build_deployment_group(subparsers: argparse._SubParsersAction, kind: str) -
def build_parser() -> argparse.ArgumentParser: def build_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog="castle", prog="castle",
description="Castle platform CLI — programs, deployments (services, jobs, tools), and infrastructure", description=(
"Castle platform CLI — programs, deployments "
"(services, jobs, tools), and infrastructure"
),
) )
parser.add_argument("--version", action="version", version=f"castle {__version__}") parser.add_argument("--version", action="version", version=f"castle {__version__}")
subparsers = parser.add_subparsers(dest="command", help="Available commands") subparsers = parser.add_subparsers(dest="command", help="Available commands")