From 6bf11ddd929f1059d4bf12caad595db03103d353 Mon Sep 17 00:00:00 2001 From: meesters Date: Thu, 29 Feb 2024 15:09:09 +0100 Subject: [PATCH] fix: attempt fixing linting issue --- snakemake_executor_plugin_slurm_jobstep/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snakemake_executor_plugin_slurm_jobstep/__init__.py b/snakemake_executor_plugin_slurm_jobstep/__init__.py index 9d82205..7adbb48 100644 --- a/snakemake_executor_plugin_slurm_jobstep/__init__.py +++ b/snakemake_executor_plugin_slurm_jobstep/__init__.py @@ -122,7 +122,9 @@ def run_job(self, job: JobExecutorInterface): # limit the number of cpus to the number of threads. cpus = min(self.cpus_per_task, job.threads) - call = f"srun -n1 --cpu-bind=q --cpus-per-task {cpus} {self.format_job_exec(job)}" + call = "srun -n1 --cpu-bind=q " + call += f"--cpus-per-task {cpus} " + call += f"{self.format_job_exec(job)}" self.logger.debug(job.is_group()) self.logger.debug(call)