Parcourir la source

build_manager: fix linting issues

Shiv Tyagi il y a 2 mois
Parent
commit
7d1bf97f81
2 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 3 3
      build_manager/manager.py
  2. 2 1
      build_manager/progress_updater.py

+ 3 - 3
build_manager/manager.py

@@ -72,7 +72,7 @@ class BuildInfo:
             percent=0
         )
         self.time_created = time.time()
-        self.time_started = None # when build state becomes RUNNING
+        self.time_started = None  # when build state becomes RUNNING
 
     def to_dict(self) -> dict:
         return {
@@ -357,8 +357,8 @@ class BuildManager:
         )
 
     def update_build_time_started(self,
-                              build_id: str,
-                              time_started: float) -> None:
+                                  build_id: str,
+                                  time_started: float) -> None:
         """
         Update the build's time_started timestamp.
 

+ 2 - 1
build_manager/progress_updater.py

@@ -8,7 +8,8 @@ from .manager import (
 )
 import time
 
-CBS_BUILD_TIMEOUT_SEC = int(os.getenv('CBS_BUILD_TIMEOUT_SEC', 900))  # 15 minutes default
+CBS_BUILD_TIMEOUT_SEC = int(os.getenv('CBS_BUILD_TIMEOUT_SEC', 900))
+
 
 class BuildProgressUpdater:
     """