Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 3, 2024
1 parent f0ab025 commit 1d49461
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions ipyparallel/cluster/shellcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* exists: checks if a file/directory exists
* remove: removes a file
"""

import base64
import enum
import inspect
Expand Down Expand Up @@ -672,9 +673,7 @@ def initialize(self):
shell = val

if self.platform == Platform.Windows and self.python_path is not None:
self.break_away_support = (
self._check_for_break_away_flag()
) # check if break away flag is available (its not in windows github runners)
self.break_away_support = self._check_for_break_away_flag() # check if break away flag is available (its not in windows github runners)

self.shell_info = (system, shell)

Expand Down
1 change: 1 addition & 0 deletions ipyparallel/shellcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* exists: checks if a file/directory exists
* remove: removes a file
"""

import os
import sys
from argparse import ArgumentParser
Expand Down
7 changes: 4 additions & 3 deletions ipyparallel/tests/test_shellcmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""test shell command classes"""

import signal
import sys
import time
Expand Down Expand Up @@ -121,9 +122,9 @@ def shellcmd_test_cmd():
"""returns a command that runs for 5 seconds"""
test_command = {}
test_command["windows"] = 'ping -n 5 127.0.0.1'
test_command[
"linux"
] = 'ping -c 5 127.0.0.1' # ping needs to be installed to the standard ubuntu docker image
test_command["linux"] = (
'ping -c 5 127.0.0.1' # ping needs to be installed to the standard ubuntu docker image
)
test_command["macos"] = 'ping -c 5 127.0.0.1'
return test_command

Expand Down

0 comments on commit 1d49461

Please sign in to comment.