Open balrok opened 4 years ago
What do you think? It is not breaking existing tools while having finally a way to write comments into the cfg-file. This is especially important if the file is used to configure other tools too.
@balrok If I understand correctly your patch will avoid bump2version to update the config file, and one has to rely on the explicit configuration which will only update the version string via _replace_version_in_files
instead of _update_config_file
which rewrites the whole configuration file
This looks a smart move.
The only concern is that it's not 100% compatible as one has to change its configuration to retain the current behavior (even for people not affected by the current behavior)
I know it's not great to revive dead threads, but is this PR going to get merged in the future? My team is having issues with pre-commit and bump2version as in #124
Since pr #90 introduced a lot of breaking changes (can bee seen in the updated unit tests in #162 ). Here is another approach. Basically it makes it opt-in to use bump2version on the
.bumpversion.cfg
rather than the opt-out approach of #90.When this PR is merged it solves #87, #62, and provides a solution for #161