Skip to content

Commit

Permalink
Add bump-my-version config¨
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Nov 14, 2023
1 parent 852a1d8 commit 087ff47
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors:
given-names: "Hew"
orcid: "https://orcid.org/0000-0000-0000-0000"
title: "My Research Software"
version: 2.0.4
version: 1.1.0
doi: 10.5281/zenodo.1234
date-released: 2017-12-18
url: "https://github.com/scientificcomputing/example-paper"
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"pdbpp",
"bump-my-version",
"pre-commit",
]
docs = [
Expand Down Expand Up @@ -70,3 +71,28 @@ target-version = "py310"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10


[tool.bumpversion]
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
current_version = "0.2.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = [
"{major}.{minor}.{patch}"
]

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

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

0 comments on commit 087ff47

Please sign in to comment.