Skip to content

Commit

Permalink
Run black on codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan O'Cais committed May 22, 2019
1 parent 4b1c8fa commit 6317d56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions jobqueue_features/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,16 +555,14 @@ def _update_script_nodes(self): # type: () -> None
dask_worker_module = "distributed.cli.dask_worker"
command_template = command_template.replace(
"-m %s".format(dask_worker_module),
"-m %s".format(MPI_DASK_WRAPPER_MODULE)
"-m %s".format(MPI_DASK_WRAPPER_MODULE),
)
# The first part of the string is the python executable to use for the
# worker
[python, arguments] = command_template.split(' ', 1)
[python, arguments] = command_template.split(" ", 1)
# Wrap the launch command with our mpi wrapper
command_template = mpi_wrap(
python,
exec_args=arguments,
return_wrapped_command=True
python, exec_args=arguments, return_wrapped_command=True
)
self.warnings.append(
"Replaced command template\n\t%s\nwith\n\t%s\nin jobscript".format(
Expand Down
1 change: 1 addition & 0 deletions jobqueue_features/mpi_dask_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

MPI_DASK_WRAPPER_MODULE = "jobqueue_features.mpi_wrapper.mpi_dask_worker"


def prepare_for_mpi_tasks(root=0, comm=None):
if comm is None:
from mpi4py import MPI
Expand Down

2 comments on commit 6317d56

@AdamWlodarczyk
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black was ran over all of our python code?

@ocaisa
Copy link
Contributor

@ocaisa ocaisa commented on 6317d56 May 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdamWlodarczyk Yes, and it's also part of the CI

Please sign in to comment.