callowayproject/bump-my-version

Bumping version adds extra whitespace to `pyproject.toml`

Closed this issue · 2 comments

  • bump-my-version version: 0.16.1
  • Python version: 3.12.1
  • Operating System: Ubuntu 22.04 LTS

Description

The newest version of bump-my-version adds an extra newline to the pyproject.toml file when bumping the version. This is causing issues for me with linters and code formatting tools.

What I Did

$ bump-my-version bump build

Notes

See line 152 here: Ouranosinc/xclim@a368fa4

I just ran into the same issue. Here is a demo.

Peek 2024-01-11 22-47

Thanks for the great demo. It really helps me understand what is happening.