From f7730cdd119b4a6fc8e4c229eba06b894924b79c Mon Sep 17 00:00:00 2001 From: Domenic Barbuzzi Date: Fri, 4 Oct 2024 18:13:29 +0000 Subject: [PATCH] Apply style fixes --- .../compose_testmo_resources_file.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/actions/testmo-create-resources/compose_testmo_resources_file.py b/actions/testmo-create-resources/compose_testmo_resources_file.py index e7e01bf..ad2b6cd 100755 --- a/actions/testmo-create-resources/compose_testmo_resources_file.py +++ b/actions/testmo-create-resources/compose_testmo_resources_file.py @@ -13,7 +13,6 @@ import subprocess if __name__ == "__main__": - # command line arguments args_parser = argparse.ArgumentParser() @@ -21,23 +20,29 @@ "-j", "--resources_json", help="string version of JSON identifying resource fields", - type=str) + type=str, + ) args_parser.add_argument( "-d", "--destination", help="absolute path for where to generate the file,", - type=str) + type=str, + ) args = args_parser.parse_args() fields = json.loads(args.resources_json) for field in fields: testmo_args = [ - "--resources", f"{args.destination}", - "--name", f"{field}", - "--type", "string", - "--value", f"{fields[field]}" + "--resources", + f"{args.destination}", + "--name", + f"{field}", + "--type", + "string", + "--value", + f"{fields[field]}", ] testmo_command = ["npx", "testmo", "automation:resources:add-field"] full_command = testmo_command + testmo_args