Bump-my-version

Latest version: v1.1.1

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 14

1.1.1

[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/1.1.0...1.1.1)

Fixes

- Fix fallback search pattern in files. [51ea69f](https://github.com/callowayproject/bump-my-version/commit/51ea69ffb0c31fd311f386a35e27dc0eee0da3d6)

Refactor `_contains_change_pattern` method by removing unused `context` parameter.

Replace version config usage with `DEFAULT_CONFIG` to provide correct fallback logic.

Minor test update to align with changes.
- Fixes lack of rendering in moveable tags. [d201dff](https://github.com/callowayproject/bump-my-version/commit/d201dffb4f96fc58d946451f4799194869316ca4)

1.1.0

[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/1.0.2...1.1.0)

Fixes

- Refactor Mercurial SCM support and improve test coverage. [acd94d1](https://github.com/callowayproject/bump-my-version/commit/acd94d150b0bca2fbec354a50ae9b36bdb3cff75)

Revamped the Mercurial SCM implementation with new features including full tag retrieval, commit handling, and clean working directory assertion. Enhanced test suite with new Mercurial-specific tests for functionality and edge cases.
- Fixed the test_bump_nested_regex function to use utc time. [7d33dff](https://github.com/callowayproject/bump-my-version/commit/7d33dffaf38e7816202ddff3e9a9cc6a66b57fcb)

Code in the test function used the machine local time instead of UTC
time. This made the test fail if the user was not in UTC time, as the
fixture tested against a bumped time using `utcnow`

Added a recipe to justfile to run the tests and open the coverage report
in a default web browser
- Fix caching in action. [d3b9f76](https://github.com/callowayproject/bump-my-version/commit/d3b9f76d2422b6b2da16c3a4d08b2c572758740a)

New

- Added to the setup section in the contribution doc for the devenv.nix shell. [f94cc27](https://github.com/callowayproject/bump-my-version/commit/f94cc274bdac4d13969254445ff414311407ebcd)

- Added devenv.nix and justfile. [653d917](https://github.com/callowayproject/bump-my-version/commit/653d917885b7e04c18a59b7b04c0d34a7ff186d8)

Addition of devenv.nix allows developers to easily create hermetic
environments in order to develop this package. This greatly simplifies
the setup of the environment, and utilizes uv's tooling to create the
virtual environment(s). Devenv.nix can also handle git-hooks, but that
is already handled via the .pre-commit-config.yaml file.

The justfile includes some helpful starter recipes. Additional recipes
can be added, such as build and publishing of the package/Docker.
Other

- [pre-commit.ci] pre-commit autoupdate. [a85b47f](https://github.com/callowayproject/bump-my-version/commit/a85b47fd333c8e115085c44bf6b003d3010ef9f3)

**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.9...v0.11.0)

Updates

- Improved mercurial test coverage. [e35eee1](https://github.com/callowayproject/bump-my-version/commit/e35eee17098731c8465c58ec33d29be5f9c13dea)

1.0.2

[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/1.0.1...1.0.2)

Fixes

- Fix incorrect evaluation. [3578c87](https://github.com/callowayproject/bump-my-version/commit/3578c872ef8143f11c22cb5e83765c6e69cf3eef)

The check for valid files to add should be `filename`, not `self.files`
- Refactor and improve test structure for file modifications. [8b52174](https://github.com/callowayproject/bump-my-version/commit/8b52174651e3c02daf3ba00166cd8f054498313d)

Consolidated and restructured tests for `modify_files` into classes for better organization and clarity. Fixed an issue where empty file configurations were not properly ignored and enhanced filtering logic in configuration handling.

Fixes 312
Other

- Replace `list[str]` with `List[str]` for Python 3.8+ compatibility. [6fb977c](https://github.com/callowayproject/bump-my-version/commit/6fb977ca9144a590153e779c59c4c788efd1442f)

Updated all instances of `list[str]` with the generic `List[str]` from the `typing` module to maintain compatibility with older Python versions (3.8 and earlier). This ensures consistent type annotations across the codebase.

Fixes 313
- [pre-commit.ci] pre-commit autoupdate. [a057743](https://github.com/callowayproject/bump-my-version/commit/a0577433bd069f47d0e1eb368def4309f931a947)

**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.9.7 → v0.9.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.7...v0.9.9)

1.0.1

[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/1.0.0...1.0.1)

Fixes

- Fix type hinting compatibility for 3.8. [9c2bb03](https://github.com/callowayproject/bump-my-version/commit/9c2bb03bee4c84ff97af415a47dfc57aea925c41)

Replaced `list` with `List` for type hints to ensure compatibility with earlier Python versions.

1.0.0

[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.33.0...1.0.0)

Breaking Changes

- Updated the Readme. [5a621c3](https://github.com/callowayproject/bump-my-version/commit/5a621c3ad28bb71e5e3d34fdae35769679c47f1b)

New

- Added breaking change parsing. [00c4e7b](https://github.com/callowayproject/bump-my-version/commit/00c4e7bcaa68040c71123d16c61aae89b525b13f)

0.33.0

[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.32.2...0.33.0)

Fixes

- Fixed warnings in documentation. [782077d](https://github.com/callowayproject/bump-my-version/commit/782077dc438007d4b585991788efe7c5a5c8c19f)

- Refactored PEP621 tests into a class. [2a4f12a](https://github.com/callowayproject/bump-my-version/commit/2a4f12a68067bacf81ec536b884e9ec3afb16751)

The tests are pretty much the same but renamed for clarity.
- Fixed: allow omitting the current version in sample-config. [6b369fe](https://github.com/callowayproject/bump-my-version/commit/6b369fec76e9a45b919e32a85d0b894752f6374d)

If the current version is explicitly left empty during the
`sample-config` questionnaire, the resulting `tool.bumpversion` table
now lacks a `current_version` key, and will fall back to PEP 621
`project.version` (if not dynamic). The instruction text specifically
hints at this new functionality.
New

- Add test for moveable tags. [df787f1](https://github.com/callowayproject/bump-my-version/commit/df787f153f1dcde8268e83ef3f035d018735e7bb)

- New feature: retrieve and update the PEP 621 project version, if possible. [3032450](https://github.com/callowayproject/bump-my-version/commit/3032450098f14abeb0661c62442d1ca03b222e09)

When determining the current version, and if
`tool.bumpversion.current_version` is not set, attempt to retrieve the
version from `project.version` à la PEP 621. If that setting is not
set, or if the version is explicitly marked as dynamically set, then
continue with querying SCM tags.

When updating the configuration during bumping, if we previously
successfully retrieved a PEP 621 version, then update the
`project.version` field in `pyproject.toml` as well. We always update,
even if the true current version was read from
`tool.bumpversion.current_version` instead of `project.version`.

The docs have been updated; specifically, the "multiple replacements in
one file" howto and the reference for `current_version`.

The tests have been adapted: the new `pep621_info` property would
otherwise trip up the old test output, and the `None` default would trip
up the TOML serializer. Additionally, new tests assert that
`project.version` (and correspondingly, the `pep621_info` property) is
correctly honored or ignored, depending on the other circumstances.
Other

- [pre-commit.ci] pre-commit autoupdate. [59e8634](https://github.com/callowayproject/bump-my-version/commit/59e863415d9a9f7ef082978ccee7b27c36112ea1)

**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.6...v0.9.7)

Updates

- Updated documentation. [8162dd8](https://github.com/callowayproject/bump-my-version/commit/8162dd852b874e36626ad01ad72ea892499a9817)

Page 1 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.