Skip to content

Commit 0dcaa36

Browse files
committed
chore: rename local variable in the release script
1 parent 269acea commit 0dcaa36

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

changelog.d/+f34e3407.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rename local variable in `scripts/release.py`.

scripts/release.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ def check_repository() -> None:
8080

8181
def update_version(version: str | None = None, bump: str | None = None) -> str:
8282
"""Update the version and return the new version."""
83-
args = ["uv", "version", "--no-sync", "--output-format", "json"]
83+
cmd = ["uv", "version", "--no-sync", "--output-format", "json"]
8484

8585
if version:
86-
args.append(version)
86+
cmd.append(version)
8787

8888
if bump:
89-
args.extend(("--bump", bump))
89+
cmd.extend(("--bump", bump))
9090

9191
try:
92-
version_json = subprocess.check_output(args)
92+
version_json = subprocess.check_output(cmd)
9393

9494
except subprocess.CalledProcessError:
9595
print_error("An error occurred while bumping the version.")

template/scripts/release.py.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ def check_repository() -> None:
9797
{% if not dynamic_version %}
9898
def update_version(version: str | None = None, bump: str | None = None) -> str:
9999
"""Update the version and return the new version."""
100-
args = ["uv", "version", "--no-sync", "--output-format", "json"]
100+
cmd = ["uv", "version", "--no-sync", "--output-format", "json"]
101101

102102
if version:
103-
args.append(version)
103+
cmd.append(version)
104104

105105
if bump:
106-
args.extend(("--bump", bump))
106+
cmd.extend(("--bump", bump))
107107

108108
try:
109-
version_json = subprocess.check_output(args)
109+
version_json = subprocess.check_output(cmd)
110110

111111
except subprocess.CalledProcessError:
112112
print_error("An error occurred while bumping the version.")

0 commit comments

Comments
 (0)