Skip to content

Commit d3d36ec

Browse files
committed
Compact format
1 parent 3f2b040 commit d3d36ec

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

tools/release.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -282,35 +282,22 @@ def main():
282282

283283
# Check that uv is available
284284
if not check_uv_available():
285-
print(
286-
"Error: 'uv' command not found. Please install uv first.", file=sys.stderr
287-
)
288-
print(
289-
" Install with: curl -LsSf https://astral.sh/uv/install.sh | sh",
290-
file=sys.stderr,
291-
)
285+
print("Error: 'uv' not found; install it first:", file=sys.stderr)
286+
print(" curl -LsSf https://astral.sh/uv/install.sh | sh", file=sys.stderr)
292287
return 1
293288

294289
# Check that gh CLI is available
295290
if not check_gh_available():
296-
print(
297-
"Error: 'gh' CLI not found. Please install GitHub CLI first.",
298-
file=sys.stderr,
299-
)
300-
print(
301-
" Install with: brew install gh (or see https://cli.github.com/)",
302-
file=sys.stderr,
303-
)
291+
print("Error: 'gh' not found. Please install it first:", file=sys.stderr)
292+
print(" brew install gh (or see https://cli.github.com/)", file=sys.stderr)
304293
return 1
305294

306295
pyproject_path = current_dir / "pyproject.toml"
307296

308297
# Check git status (unless --force)
309298
if not check_git_status():
310299
if args.force:
311-
print(
312-
"Warning: Git working directory is not clean (forced)",
313-
)
300+
print("Warning: Git working directory is not clean (forced)")
314301
else:
315302
print(
316303
"Error: Git working directory is not clean. Please commit or stash changes first.",

0 commit comments

Comments
 (0)