Skip to content

Commit

Permalink
black fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Sep 10, 2024
1 parent 1820aa9 commit 1e35c56
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions conda_subprocess/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
from conda_subprocess.process import Popen


def conda(prefix_name: Optional[str] = None, prefix_path: Optional[str] = None, hostname_localhost: bool = False):
def conda(
prefix_name: Optional[str] = None,
prefix_path: Optional[str] = None,
hostname_localhost: bool = False,
):
def conda_function(funct):
def function_wrapped(*args, **kwargs):
task_future = Future()
Expand All @@ -21,7 +25,10 @@ def function_wrapped(*args, **kwargs):
"resource_dict": {"cores": 1},
}
interface = SocketInterface(interface=SubprocessInterface(cores=1))
command_lst = ["python", get_command_path(executable="interactive_serial.py")]
command_lst = [
"python",
get_command_path(executable="interactive_serial.py"),
]
if not hostname_localhost:
command_lst += ["--host", gethostname()]
command_lst += ["--zmqport", str(interface.bind_to_random_port())]
Expand Down

0 comments on commit 1e35c56

Please sign in to comment.