From f6555d547e753da22d9764a78930cf6f1b309fb0 Mon Sep 17 00:00:00 2001 From: Stephanie Brink Date: Wed, 21 Feb 2024 22:19:32 -0800 Subject: [PATCH] black --- bin/benchpark | 15 +++++++-------- docs/generate-benchmark-list.py | 9 ++++++++- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/bin/benchpark b/bin/benchpark index 41a64c85..163fd4fa 100755 --- a/bin/benchpark +++ b/bin/benchpark @@ -198,7 +198,7 @@ def benchpark_check_tag(arg_str): out_str += f"\n\t{tag}" raise ValueError(out_str) return found - + def benchpark_setup(subparsers, actions_dict): create_parser = subparsers.add_parser( @@ -241,15 +241,15 @@ def benchpark_tags(subparsers, actions_dict): help="The experiments_root you specified during Benchpark setup.", ) create_parser.add_argument( - "-a", - "--application", - action="store", + "-a", + "--application", + action="store", help="The application for which to find Benchpark tags", ) create_parser.add_argument( - "-t", - "--tag", - action="store", + "-t", + "--tag", + action="store", help="The tag for which to search in Benchpark experiments", ) actions_dict["tags"] = benchpark_tags_handler @@ -443,7 +443,6 @@ def benchpark_tags_handler(args): print("All tags that exist in Benchpark experiments:") for k, v in benchpark_experiments_tags.items(): print(k) - #print(benchpark_experiments_tags) if __name__ == "__main__": diff --git a/docs/generate-benchmark-list.py b/docs/generate-benchmark-list.py index 5755f48c..0193119d 100755 --- a/docs/generate-benchmark-list.py +++ b/docs/generate-benchmark-list.py @@ -57,7 +57,14 @@ def main(workspace): cmd = ["../bin/benchpark", "tags", "-a", bmark, workspace] byte_data = subprocess.run(cmd, capture_output=True) tags = str(byte_data.stdout, "utf-8") - tags = tags.replace("[", "").replace("]", "").replace("'", "").replace(" ", "").replace("\n", "").split(",") + tags = ( + tags.replace("[", "") + .replace("]", "") + .replace("'", "") + .replace(" ", "") + .replace("\n", "") + .split(",") + ) for t in tags: for k, v in tag_dicts.items(): if t in v: