Skip to content

Commit 5e6763e

Browse files
jnnsbrrjnnsbrr
authored andcommitted
adjust release pipeline
1 parent 7a2efd5 commit 5e6763e

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

pycoupler/release.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,21 @@ def main():
259259
sys.exit(1)
260260

261261
# Check if this is a re-release and ask for confirmation
262-
if current_version and parse_version(current_version) == parse_version(version): # noqa: E501
263-
print(f"⚠️ WARNING: You are attempting to re-release version {version}") # noqa: E501
262+
if current_version and parse_version(current_version) == parse_version(
263+
version
264+
): # noqa: E501
265+
print(
266+
f"⚠️ WARNING: You are attempting to re-release version {version}"
267+
) # noqa: E501
264268
print(
265269
f"This will delete the existing tag and create a new one with recent changes." # noqa: E501
266270
)
267271
print("")
268272
while True:
269273
response = (
270-
input("Are you certain you want to re-release this version? [y/N]: ") # noqa: E501
274+
input(
275+
"Are you certain you want to re-release this version? [y/N]: "
276+
) # noqa: E501
271277
.strip()
272278
.lower()
273279
)
@@ -320,7 +326,9 @@ def main():
320326
# Check if there are changes to commit
321327
try:
322328
result = subprocess.run(
323-
["git", "diff", "--quiet", "CITATION.cff"], capture_output=True, text=True # noqa: E501
329+
["git", "diff", "--quiet", "CITATION.cff"],
330+
capture_output=True,
331+
text=True, # noqa: E501
324332
)
325333
has_changes = result.returncode != 0
326334
except subprocess.CalledProcessError:

0 commit comments

Comments
 (0)