Skip to content

Commit 3b6ff34

Browse files
Enrico Usaienrico-usai
authored andcommitted
Add docstring for public methods
Signed-off-by: Enrico Usai <[email protected]>
1 parent fa1bc9d commit 3b6ff34

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/integration-tests/tests/common/schedulers_common.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,8 @@ def submit_command(self, command, nodes=1, slots=None, hold=False, after_ok=None
216216
"echo '{0}' | qsub {1}".format(command, flags), raise_on_error=False
217217
)
218218

219-
def submit_script(
220-
self, script, script_args=None, nodes=1, slots=None, additional_files=None, host=None
221-
): # noqa: D102
219+
def submit_script(self, script, script_args=None, nodes=1, slots=None, additional_files=None, host=None):
220+
"""Submit job with script."""
222221
if not additional_files:
223222
additional_files = []
224223
if not script_args:
@@ -319,7 +318,8 @@ def submit_command(
319318
constraint=None,
320319
other_options=None,
321320
raise_on_error=True,
322-
): # noqa: D102
321+
):
322+
"""Submit job with command."""
323323
job_submit_command = "--wrap='{0}'".format(command)
324324

325325
return self._submit_batch_job(
@@ -347,7 +347,8 @@ def submit_script(
347347
other_options=None,
348348
additional_files=None,
349349
raise_on_error=True,
350-
): # noqa: D102
350+
):
351+
"""Submit job with script."""
351352
if not additional_files:
352353
additional_files = []
353354
if not script_args:

0 commit comments

Comments
 (0)