diff --git a/milatools/cli/commands.py b/milatools/cli/commands.py index ddfbd057..1d9310ed 100644 --- a/milatools/cli/commands.py +++ b/milatools/cli/commands.py @@ -40,8 +40,8 @@ from .utils import ( CommandNotFoundError, MilatoolsUserError, - SSHConnectionError, SSHConfig, + SSHConnectionError, T, get_fully_qualified_name, qualified, @@ -145,15 +145,6 @@ def mila(): help="Set up your configuration and credentials.", formatter_class=SortingHelpFormatter, ) - # init_parser.add_argument( - # "--drac", - # action="store_true", - # default=False, - # help=( - # "Set up your configuration and credentials for the DRAC (a.k.a. ComputeCanada) " - # "clusters." - # ), - # ) init_parser.set_defaults(function=init) diff --git a/milatools/cli/local.py b/milatools/cli/local.py index df2b5fcc..368259f5 100644 --- a/milatools/cli/local.py +++ b/milatools/cli/local.py @@ -1,6 +1,5 @@ from __future__ import annotations -import shlex import subprocess from logging import getLogger as get_logger from subprocess import CompletedProcess @@ -74,7 +73,8 @@ def check_passwordless(self, host: str, timeout: int | None = None): except subprocess.TimeoutExpired as err: if err.stdout is None and err.stderr is None: logger.debug( - f"Timeout ({timeout}s) while connecting to {host}, must be waiting for a password." + f"Timeout ({timeout}s) while connecting to {host}, must be waiting " + f"for a password." ) return False logger.debug( diff --git a/tests/cli/test_init_command.py b/tests/cli/test_init_command.py index 2d0e0d99..4d4273b9 100644 --- a/tests/cli/test_init_command.py +++ b/tests/cli/test_init_command.py @@ -51,6 +51,7 @@ def permission_bits_check_doesnt_work_on_windows(): reason="TODO: The check for permission bits is failing on Windows in CI.", ) + # Set a module-level mark: Each test cannot take longer than 1 second to run. pytestmark = pytest.mark.timeout(1)