Skip to content

Commit

Permalink
fix increase minor in the case when patch contains characters
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco086 committed Jan 29, 2024
1 parent 7bda0e5 commit 4c9889b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dac/_version_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ def find_latest_version(pkg_name: str, major: Optional[int] = None) -> str:

def increase_minor(version: str) -> str:
major, minor, patch = version.split(".")
assert major.isdigit() and minor.isdigit() and patch.isdigit()
assert major.isdigit() and minor.isdigit()
return f"{major}.{int(minor) + 1}.0"

0 comments on commit 4c9889b

Please sign in to comment.