Skip to content

Commit cf298a0

Browse files
committed
chore: lint fix
Signed-off-by: habeck <habeck@us.ibm.com>
1 parent e3ae367 commit cf298a0

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

cpex/tools/cli.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import os
3232
import shutil
3333
import subprocess # nosec B404 # Safe: Used only for git commands with hardcoded args
34-
import sys
3534
from pathlib import Path
3635
from typing import List, Optional
3736

@@ -40,13 +39,6 @@
4039
from rich.console import Console
4140
from typing_extensions import Annotated
4241

43-
# Exit codes for CLI commands
44-
EXIT_SUCCESS = 0
45-
EXIT_GENERAL_ERROR = 1
46-
EXIT_INVALID_ARGS = 2
47-
EXIT_NOT_FOUND = 3
48-
EXIT_OPERATION_FAILED = 4
49-
5042
# First-Party
5143
from cpex.framework.loader.config import ConfigLoader, ConfigSaver
5244
from cpex.framework.models import (
@@ -60,6 +52,13 @@
6052
# Third-Party
6153
from cpex.tools.plugin_registry import PluginRegistry
6254

55+
# Exit codes for CLI commands
56+
EXIT_SUCCESS = 0
57+
EXIT_GENERAL_ERROR = 1
58+
EXIT_INVALID_ARGS = 2
59+
EXIT_NOT_FOUND = 3
60+
EXIT_OPERATION_FAILED = 4
61+
6362
logger = logging.getLogger(__name__)
6463
console = Console()
6564

@@ -623,7 +622,9 @@ def install(source: str, install_type: str | None, catalog: PluginCatalog, assum
623622

624623
handler = handlers.get(install_type)
625624
if handler is None:
626-
console.print(f":x: Unsupported installation type: {install_type}. Must be one of: {', '.join(handlers.keys())}")
625+
console.print(
626+
f":x: Unsupported installation type: {install_type}. Must be one of: {', '.join(handlers.keys())}"
627+
)
627628
raise typer.Exit(EXIT_INVALID_ARGS)
628629

629630
try:

0 commit comments

Comments
 (0)