From b937afef13c60e721d462e9e0f32c147d41934dd Mon Sep 17 00:00:00 2001 From: Eugen Beck Date: Mon, 26 Aug 2024 10:33:32 +0000 Subject: [PATCH] Some black + ruff fixes --- sisyphus/aws_batch_engine.py | 2 +- sisyphus/load_sharing_facility_engine.py | 2 +- sisyphus/localengine.py | 2 -- sisyphus/simple_linux_utility_for_resource_management_engine.py | 2 +- sisyphus/son_of_grid_engine.py | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sisyphus/aws_batch_engine.py b/sisyphus/aws_batch_engine.py index 123a6a4..2ad4e90 100644 --- a/sisyphus/aws_batch_engine.py +++ b/sisyphus/aws_batch_engine.py @@ -26,7 +26,7 @@ import sisyphus.global_settings as gs from sisyphus.engine import EngineBase -from sisyphus.global_settings import STATE_RUNNABLE, STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR +from sisyphus.global_settings import STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR ENGINE_NAME = "aws" TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"]) diff --git a/sisyphus/load_sharing_facility_engine.py b/sisyphus/load_sharing_facility_engine.py index 510d353..5284159 100644 --- a/sisyphus/load_sharing_facility_engine.py +++ b/sisyphus/load_sharing_facility_engine.py @@ -11,7 +11,7 @@ import sisyphus.global_settings as gs from sisyphus.engine import EngineBase -from sisyphus.global_settings import STATE_RUNNABLE, STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR +from sisyphus.global_settings import STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR ENGINE_NAME = "lsf" TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"]) diff --git a/sisyphus/localengine.py b/sisyphus/localengine.py index a754d47..e863851 100644 --- a/sisyphus/localengine.py +++ b/sisyphus/localengine.py @@ -39,7 +39,6 @@ def get_process_logging_path(task_path, task_name, task_id): class sync_object(object): - """Object to be used by the with statement to sync an object via queue e.g.:: @@ -66,7 +65,6 @@ def __exit__(self, type, value, traceback): class LocalEngine(threading.Thread, EngineBase): - """Simple engine to execute running tasks locally. CPU and GPU are always checked, all other requirements only if given during initialisation. """ diff --git a/sisyphus/simple_linux_utility_for_resource_management_engine.py b/sisyphus/simple_linux_utility_for_resource_management_engine.py index 1d200f5..ff0e71a 100644 --- a/sisyphus/simple_linux_utility_for_resource_management_engine.py +++ b/sisyphus/simple_linux_utility_for_resource_management_engine.py @@ -13,7 +13,7 @@ import sisyphus.global_settings as gs from sisyphus.engine import EngineBase -from sisyphus.global_settings import STATE_RUNNABLE, STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR +from sisyphus.global_settings import STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR ENGINE_NAME = "slurm" TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"]) diff --git a/sisyphus/son_of_grid_engine.py b/sisyphus/son_of_grid_engine.py index 5e4882c..4a87727 100644 --- a/sisyphus/son_of_grid_engine.py +++ b/sisyphus/son_of_grid_engine.py @@ -15,7 +15,7 @@ import sisyphus.global_settings as gs from sisyphus.engine import EngineBase -from sisyphus.global_settings import STATE_RUNNABLE, STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR +from sisyphus.global_settings import STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR ENGINE_NAME = "sge" TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"])