Skip to content

Commit

Permalink
Fix pre-commit issues
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Dec 18, 2023
1 parent 329c367 commit 753c490
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
11 changes: 1 addition & 10 deletions milatools/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
from .utils import (
CommandNotFoundError,
MilatoolsUserError,
SSHConnectionError,
SSHConfig,
SSHConnectionError,
T,
get_fully_qualified_name,
qualified,
Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions milatools/cli/local.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import shlex
import subprocess
from logging import getLogger as get_logger
from subprocess import CompletedProcess
Expand Down Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_init_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 753c490

Please sign in to comment.