@@ -88,7 +88,11 @@ def __init__(self, config, user=None, token=None, custom_template_dir=None):
88
88
self ._templates .append (custom_template_dir )
89
89
# Add relevant subdirectories
90
90
for subdir in ["runtime" , "runtime/base" , "runtime/boot" , "runtime/tests" ]:
91
- sub_path = os .path .join (custom_template_dir , subdir ) if not custom_template_dir .endswith (subdir ) else custom_template_dir
91
+ sub_path = (
92
+ os .path .join (custom_template_dir , subdir )
93
+ if not custom_template_dir .endswith (subdir )
94
+ else custom_template_dir
95
+ )
92
96
if os .path .isdir (sub_path ):
93
97
self ._templates .append (sub_path )
94
98
self ._user = user
@@ -231,7 +235,8 @@ def get_runtime(config, user=None, token=None, custom_template_dir=None):
231
235
"""
232
236
module_name = '.' .join (['kernelci' , 'runtime' , config .lab_type ])
233
237
runtime_module = importlib .import_module (module_name )
234
- return runtime_module .get_runtime (config , user = user , token = token , custom_template_dir = custom_template_dir )
238
+ return runtime_module .get_runtime (config , user = user , token = token ,
239
+ custom_template_dir = custom_template_dir )
235
240
236
241
237
242
def get_all_runtimes (runtime_configs , opts , custom_template_dir = None ):
@@ -251,7 +256,8 @@ def get_all_runtimes(runtime_configs, opts, custom_template_dir=None):
251
256
opts .get_from_section (section , opt )
252
257
for opt in ('user' , 'runtime_token' )
253
258
)
254
- runtime = get_runtime (config , user = user , token = token , custom_template_dir = custom_template_dir )
259
+ runtime = get_runtime (config , user = user , token = token ,
260
+ custom_template_dir = custom_template_dir )
255
261
yield config_name , runtime
256
262
257
263
0 commit comments