@@ -86,15 +86,23 @@ def tag_exists(tag_name: str) -> bool:
8686
8787
8888def main ():
89- parser = argparse .ArgumentParser (description = "Tag and push agent-memory-server release" )
89+ parser = argparse .ArgumentParser (
90+ description = "Tag and push agent-memory-server release"
91+ )
9092 parser .add_argument (
91- "--dry-run" , action = "store_true" , help = "Show what would be done without actually doing it"
93+ "--dry-run" ,
94+ action = "store_true" ,
95+ help = "Show what would be done without actually doing it" ,
9296 )
9397 parser .add_argument (
94- "--force" , action = "store_true" , help = "Force tag creation even if tag already exists"
98+ "--force" ,
99+ action = "store_true" ,
100+ help = "Force tag creation even if tag already exists" ,
95101 )
96102 parser .add_argument (
97- "--test" , action = "store_true" , help = "Add '-test' suffix to tag for TestPyPI deployment"
103+ "--test" ,
104+ action = "store_true" ,
105+ help = "Add '-test' suffix to tag for TestPyPI deployment" ,
98106 )
99107
100108 args = parser .parse_args ()
@@ -133,7 +141,9 @@ def main():
133141 print (f"Tag { tag_name } already exists, but --force specified" )
134142 run_command (["git" , "tag" , "-d" , tag_name ], args .dry_run )
135143 else :
136- print (f"Error: Tag { tag_name } already exists. Use --force to overwrite." )
144+ print (
145+ f"Error: Tag { tag_name } already exists. Use --force to overwrite."
146+ )
137147 sys .exit (1 )
138148
139149 # Create the tag
@@ -162,4 +172,3 @@ def main():
162172
163173if __name__ == "__main__" :
164174 main ()
165-
0 commit comments