From 54565063a5410f6662092a17aa98797bb4e24e67 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 06:27:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- executorlib/interactive/slurm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/executorlib/interactive/slurm.py b/executorlib/interactive/slurm.py index 8c962529..7ed465d1 100644 --- a/executorlib/interactive/slurm.py +++ b/executorlib/interactive/slurm.py @@ -7,7 +7,9 @@ def validate_max_workers(max_workers: int, cores: int, threads_per_core: int): - cores_total = int(os.environ["SLURM_NTASKS"]) * int(os.environ["SLURM_CPUS_PER_TASK"]) + cores_total = int(os.environ["SLURM_NTASKS"]) * int( + os.environ["SLURM_CPUS_PER_TASK"] + ) cores_requested = max_workers * cores * threads_per_core if cores_total < cores_requested: raise ValueError(