Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ version = {attr = "keep_gpu.__version__"}
# -----------------------------
# bump-my-version configuration
[tool.bumpversion]
current_version = "0.2.0"
current_version = "0.3.0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This minor version bump from 0.2.0 to 0.3.0 seems inconsistent with the pull request's title, which indicates a fix. Following Semantic Versioning conventions, minor version bumps are typically used for releases with new, backward-compatible features, whereas patch bumps (e.g., to 0.2.1) are for bug fixes. To ensure versioning is clear for users, consider using a patch version if this release contains only fixes.

Suggested change
current_version = "0.3.0"
current_version = "0.2.1"

commit = true
tag = true
tag_name = "v{new_version}"
Expand Down
2 changes: 1 addition & 1 deletion src/keep_gpu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Siyuan Wang"""
__email__ = "sywang0227@gmail.com"
__version__ = "0.2.0"
__version__ = "0.3.0"
4 changes: 3 additions & 1 deletion src/keep_gpu/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def main(
try:
gpu_id_list = [int(i.strip()) for i in gpu_ids.split(",")]
except ValueError:
console.print(f"[bold red]Error: Invalid characters in --gpu-ids '{gpu_ids}'. Please use comma-separated integers.[/bold red]")
console.print(
f"[bold red]Error: Invalid characters in --gpu-ids '{gpu_ids}'. Please use comma-separated integers.[/bold red]"
)
raise typer.Exit(code=1)
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join(map(str, gpu_id_list))
logger.info(f"Using specified GPUs: {gpu_id_list}")
Expand Down