Skip to content

Commit

Permalink
Reverse regex flag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Nov 5, 2023
1 parent 71c1b66 commit 444952c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -189,35 +189,30 @@ precision = 2
[tool.bumpversion]
current_version = "4.7.2"
allow_dirty = true
no_regex = true

[[tool.bumpversion.files]]
# Update Python package version.
no_regex = true
filename = "./click_extra/__init__.py"

[[tool.bumpversion.files]]
# Update version in Poetry section.
filename = "./pyproject.toml"
no_regex = true
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "./changelog.md"
no_regex = true
search = "{{gh}}`{current_version} (unreleased)"
replace = "{{gh}}`{new_version} (unreleased)"

[[tool.bumpversion.files]]
filename = "./citation.cff"
no_regex = true
search = "version: {current_version}"
replace = "version: {new_version}"

[[tool.bumpversion.files]]
filename = "./citation.cff"
no_regex = false
regex = true
search = "date-released: \\d{{4}}-\\d{{2}}-\\d{{2}}"
replace = "date-released: {now:%Y-%m-%d}"

Expand Down

0 comments on commit 444952c

Please sign in to comment.