From c1fb9736cc83dac283f73de48c460f3e326795b4 Mon Sep 17 00:00:00 2001 From: Bernardus Rendy <37468936+bernardusrendy@users.noreply.github.com> Date: Thu, 25 Apr 2024 00:39:24 -0700 Subject: [PATCH] black --- alab_management/device_manager.py | 6 +++--- alab_management/scripts/launch_lab.py | 6 +++--- alab_management/user_input.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/alab_management/device_manager.py b/alab_management/device_manager.py index bc7d5e30..d108f98d 100644 --- a/alab_management/device_manager.py +++ b/alab_management/device_manager.py @@ -79,9 +79,9 @@ def _raise(self, *args, **kwargs) -> NoReturn: # pylint: disable=no-self-use __str__ = __repr__ - __len__ = ( - __getattr__ - ) = __getitem__ = __add__ = __sub__ = __eq__ = __lt__ = __gt__ = _raise + __len__ = __getattr__ = __getitem__ = __add__ = __sub__ = __eq__ = __lt__ = ( + __gt__ + ) = _raise def __init__(self, name: str, devices_client: "DevicesClient"): self._name = name diff --git a/alab_management/scripts/launch_lab.py b/alab_management/scripts/launch_lab.py index 6270ef38..1f36ea37 100644 --- a/alab_management/scripts/launch_lab.py +++ b/alab_management/scripts/launch_lab.py @@ -74,9 +74,9 @@ def launch_lab(host, port, debug): task_launcher_thread = Thread(target=launch_task_manager) device_manager_thread = Thread(target=launch_device_manager) - dashboard_thread.daemon = ( - experiment_manager_thread.daemon - ) = task_launcher_thread.daemon = device_manager_thread.daemon = True + dashboard_thread.daemon = experiment_manager_thread.daemon = ( + task_launcher_thread.daemon + ) = device_manager_thread.daemon = True dashboard_thread.start() device_manager_thread.start() diff --git a/alab_management/user_input.py b/alab_management/user_input.py index 088ba49a..745a9a8e 100644 --- a/alab_management/user_input.py +++ b/alab_management/user_input.py @@ -121,7 +121,7 @@ def retrieve_user_input(self, request_id: ObjectId) -> str: ) status = UserRequestStatus(request["status"]) time.sleep(0.5) - except: + except: # noqa: E722 self._input_collection.update_one( {"_id": request_id}, {"$set": {"status": UserRequestStatus.ERROR.name}} )