Floris Lambrechts

Results 160 comments of Floris Lambrechts

I'm not sure if this a bug or a design choice. Many configuration files (e.g. `.pylintrc`) also only work when they're present at the right level. Would it help if...

How does adding double quotes to `search` help here? `40.1.1` and `0.1.1` both have double quotes around them... Was your intent to bump `40.1.1` to `40.1.2` or to bump `0.1.1`...

I see, you got an accidental match. The `--current-version` argument can't protect against that. For future reference, you can use a custom `search` that only matches what you want: [bumpversion]...

Got it, the `search` matches `40.1.1` and `0.1.1`; only the latter is recognized as the current version number. But the naive replacement code does two replacements instead of one.

This is not very trivial to fix since the current `utils.ConfiguredFile.replace()` does not use regular expressions (`re.sub`). It's simply serializing the `search` and `replace` text, and doing `str.replace` on the...

I'm not working on a fix, but here is a unit test which demonstrates the problem. https://github.com/florisla/bump2version/tree/dont-replace-partial-matches

I'm trying to use `re.sub` and adding leading and trailing `\b` (word boundary) in the expression. This works fine preventing the issue, but it has nasty side effect. Previously, it...

Agreed that it should not exit with ERRNO 0.

This is the case for Python projects. However, pojects done in another language can also benefit from bumpversion, and there it does not make sense to have either `setup.cfg` or...