Skip to content

Commit

Permalink
Add bump-my-version (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar authored Dec 5, 2024
1 parent 0eb4f6f commit 3e6fd18
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ clean:
setup: install_uv
uv sync --all-extras --all-groups
uv run pre-commit install

bump part="patch":
uv run bump-my-version bump {{part}} --verbose

bump-dry part='patch':
uv run bump-my-version bump {{part}} --dry-run --verbose --allow-dirty
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ doc = [
"sphinxext-opengraph",
]
maintain = [
"bump2version",
"bump-my-version",
"pre-commit-uv",
]
test = [
Expand All @@ -105,6 +105,21 @@ test = [
"types-deprecated",
]

[tool.bumpversion]
current_version = "0.20.2"
commit = true
tag = true

[[tool.bumpversion.files]]
filename = "src/torchio/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[tool.mypy]
pretty = true

Expand Down

0 comments on commit 3e6fd18

Please sign in to comment.