monim67 / poetry-bumpversion

Poetry plugin to update __version__ in __init__ file and other files containing version strings
https://pypi.org/project/poetry-bumpversion/
MIT License
81 stars 4 forks source link

Config option to error if version replace doesn't happen #7

Open rowanseymour opened 1 year ago

rowanseymour commented 1 year ago

Currently if bumping the version fails once (perhaps because a developer doesn't have the plugin installed https://github.com/monim67/poetry-bumpversion/issues/6), it will also fail the next time because it won't find the current version in the file when it's doing a search and replace.

It would be very useful to configure that the version bump has to happen, and if it doesn't, that's an error because something has clearly gone wrong.