From f641e7f8d39a461e5ce39804e7167dacf6a9c811 Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Sun, 5 Jul 2026 15:52:41 -0700 Subject: [PATCH] style: fix lint errors (line length, import sort) --- cli/src/castle_cli/commands/info.py | 5 ++++- cli/src/castle_cli/commands/tls.py | 3 ++- cli/src/castle_cli/main.py | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cli/src/castle_cli/commands/info.py b/cli/src/castle_cli/commands/info.py index 4a7c4f2..57f6842 100644 --- a/cli/src/castle_cli/commands/info.py +++ b/cli/src/castle_cli/commands/info.py @@ -126,7 +126,10 @@ def run_info(args: argparse.Namespace) -> int: if service.tcp_port is not None: # Raw-TCP reach is internal-only (public TCP is rejected at load, see # SystemdDeployment._validate_reach), so there's no "public" state here. - print(f" {BOLD}tcp{RESET}: {name}.:{service.tcp_port} (internal)") + print( + f" {BOLD}tcp{RESET}: " + f"{name}.:{service.tcp_port} (internal)" + ) if service.manage and service.manage.systemd: sd = service.manage.systemd print(f" {BOLD}systemd{RESET}: enabled={sd.enable}, restart={sd.restart.value}") diff --git a/cli/src/castle_cli/commands/tls.py b/cli/src/castle_cli/commands/tls.py index 1a9447d..47057d1 100644 --- a/cli/src/castle_cli/commands/tls.py +++ b/cli/src/castle_cli/commands/tls.py @@ -13,9 +13,10 @@ import argparse import hashlib 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_cli.config import load_config + def run_tls(args: argparse.Namespace) -> int: if getattr(args, "tls_command", None) == "status": diff --git a/cli/src/castle_cli/main.py b/cli/src/castle_cli/main.py index 109772a..828ab18 100644 --- a/cli/src/castle_cli/main.py +++ b/cli/src/castle_cli/main.py @@ -149,7 +149,10 @@ def _build_deployment_group(subparsers: argparse._SubParsersAction, kind: str) - def build_parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser( 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__}") subparsers = parser.add_subparsers(dest="command", help="Available commands")