Skip to content

Commit 82fdfcf

Browse files
jnnsbrrjnnsbrr
authored andcommitted
improve workflow
1 parent 60a60c0 commit 82fdfcf

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

pycoupler/release.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,17 @@ def delete_tag_if_exists(tag_name):
169169
run_command(
170170
f"git push origin :refs/tags/{tag_name}",
171171
f"Deleting remote tag {tag_name}",
172-
fail_on_error=False # Don't fail if tag doesn't exist remotely
172+
fail_on_error=False, # Don't fail if tag doesn't exist remotely
173173
)
174174
except Exception:
175175
# Ignore errors - tag might not exist remotely
176176
pass
177177

178178
print(f"Tag {tag_name} cleanup completed.")
179-
print("Note: You can now push your new commit and tag manually with: git push origin <branch> --tags")
179+
print(
180+
"Note: You can now push your new commit and tag manually with: "
181+
"git push origin <branch> --tags"
182+
)
180183

181184

182185
def update_citation_file(version, date=None):

tests/test_release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ def test_main_success(
290290
main()
291291

292292
# Verify calls
293-
assert mock_run_command.call_count == 4 # black, pytest, flake8, git add
293+
# black, pytest, flake8, git add, git push (remote tag deletion)
294+
assert mock_run_command.call_count == 5
294295
mock_update_citation.assert_called_once_with("1.0.0")
295296

296297
@patch("pycoupler.release.run_command")

0 commit comments

Comments
 (0)