@@ -107,26 +107,14 @@ def validate_version_progression(current: str, new: str) -> None:
107107 if major_jump > 1 :
108108 print (f"Warning: Large major version jump detected ({ current } -> { new } )" )
109109 print (f"This will jump from { curr_major } .x.x to { new_major } .x.x" )
110- response = input ("Are you sure? (yes/no): " )
111- if response .lower () != "yes" :
112- print ("Version bump cancelled." )
113- sys .exit (1 )
114110
115111 if major_jump == 0 and minor_jump > 5 :
116112 print (f"Warning: Large minor version jump detected ({ current } -> { new } )" )
117113 print (f"This will jump from x.{ curr_minor } .x to x.{ new_minor } .x" )
118- response = input ("Are you sure? (yes/no): " )
119- if response .lower () != "yes" :
120- print ("Version bump cancelled." )
121- sys .exit (1 )
122114
123115 if major_jump == 0 and minor_jump == 0 and patch_jump > 10 :
124116 print (f"Warning: Large patch version jump detected ({ current } -> { new } )" )
125117 print (f"This will jump from x.x.{ curr_patch } to x.x.{ new_patch } " )
126- response = input ("Are you sure? (yes/no): " )
127- if response .lower () != "yes" :
128- print ("Version bump cancelled." )
129- sys .exit (1 )
130118
131119
132120def check_working_directory_clean () -> None :
@@ -201,19 +189,8 @@ def main() -> None:
201189 # Validate version progression
202190 validate_version_progression (current_version , new_version )
203191
204- # Confirm with user
205- print (f"\n This will create tag v{ new_version } " )
206- print ("Make sure you have:" )
207- print (" 1. Updated CHANGELOG.rst" )
208- print (" 2. Committed all changes" )
209- print (" 3. Run tests and linting" )
210- response = input ("\n Proceed with version bump? (yes/no): " )
211-
212- if response .lower () != "yes" :
213- print ("Version bump cancelled." )
214- sys .exit (0 )
215-
216192 # Create the tag
193+ print (f"\n Creating tag v{ new_version } ..." )
217194 create_tag (new_version )
218195
219196 print ("\n [OK] Version bump complete!" )
0 commit comments