Bump-my-version

Latest version: v0.28.1

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

Scan your dependencies

Page 2 of 11

0.25.3

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

Fixes

- Refactor version parsing in visualize function. [5f25300](https://github.com/callowayproject/bump-my-version/commit/5f25300b007cee294a43af64eb970e3e100931a8)

Simplify the version parsing process by utilizing the raise_error parameter in the parse method, removing the need for a separate error check. This change ensures that parsing errors are immediately raised and handled cleanly within the visualize function.
- Refactor and rename `version_part` to `versioning.version_config`. [5b90817](https://github.com/callowayproject/bump-my-version/commit/5b90817e6210f983c691bd06008afa065c961c4f)

Moved `version_part.py` to `versioning/version_config.py` and updated all import statements accordingly. Enhanced error handling in `VersionConfig` by adding `raise_error` flag and relevant exception raising for invalid version strings. Refined tests to reflect these changes.
- Fix version visualization and add verbose logging. [ad46978](https://github.com/callowayproject/bump-my-version/commit/ad469783c0507bf7e4160cf131d2b73b494c52e8)

Raise an exception for unparsable versions and aggregate visualization output in a list before printing. Add a verbose logging option to the `show_bump` command for detailed logging control.

0.25.2

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

Fixes

- Fix JSON serialization. [d3f3022](https://github.com/callowayproject/bump-my-version/commit/d3f3022bd4c8b8d6e41fa7b5b6ccfc2aa6cf7878)

Extended the default_encoder function to handle Path objects by converting them to their string representation. This ensures that Path objects can be properly serialized to JSON format.

0.25.1

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

Fixes

- Fixes mypy pre-commit checking. [f7d0909](https://github.com/callowayproject/bump-my-version/commit/f7d0909deb8d0cf06607c4d51090ca23f7d92664)

- Fixes repository path checks. [ff3f72a](https://github.com/callowayproject/bump-my-version/commit/ff3f72a9a922dfbb61eea9325fc9dba7c12c7f62)

Checked for relative paths when determining if the file was part of the repo or not.
- Fixed test to use globs. [72f9841](https://github.com/callowayproject/bump-my-version/commit/72f9841a9628e26c6cf06518b0428d3990a08421)

Other

- [pre-commit.ci] pre-commit autoupdate. [58cc73e](https://github.com/callowayproject/bump-my-version/commit/58cc73ed041f978fddd9f81e995901596f6ac722)

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

0.25.0

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

Fixes

- Refactor error handling and improve logging in utils. [890b692](https://github.com/callowayproject/bump-my-version/commit/890b6922eb13cf36049029e3afe6778cfe0116f9)

Extracted error formatting to a dedicated function and applied it across the codebase. Improved command path handling in `add_path` and enhanced test coverage with necessary imports and logging configurations.
- Fix dictionary merging in SCMInfo. [5fb5ef2](https://github.com/callowayproject/bump-my-version/commit/5fb5ef2337eb12af7c561d834fb6fd33dd053ce4)

Replaced the bitwise OR operator with the update method for merging dictionaries for 3.8 support
- Refactor SCM info retrieval and config file update checks. [500ecd3](https://github.com/callowayproject/bump-my-version/commit/500ecd37e8603ee70253295140ba25d2b28c505d)

Replaced ChainMap with MutableMapping in function signatures and types. Enhanced SCM info handling by splitting code into dedicated methods for commit and revision info retrieval. Added logic to prevent config file updates when the file is outside the repo and implemented corresponding test.
New

- Add repository_root field and refactor subprocess handling. [25670d0](https://github.com/callowayproject/bump-my-version/commit/25670d0ecfd0b6dc7f7228af157e3a6361a0f9d9)

Introduced the `repository_root` field to store the root path of the repository in the data classes. Refactored subprocess handling to use a new `run_command` utility for improved readability and error handling consistency. Removed unnecessary dependency from `.pre-commit-config.yaml` to streamline dependencies.
Other

- Simplify run_command return type. [b91224e](https://github.com/callowayproject/bump-my-version/commit/b91224e1bf3628d42d2ab5c26929c274b7e7884e)

Changed the return type of run_command from CompletedProcess[str] to CompletedProcess. This was done to remove unnecessary type specificity and ensure compatibility with different Python versions. The update maintains functionality and improves code readability.
- [pre-commit.ci] pre-commit autoupdate. [e0ba544](https://github.com/callowayproject/bump-my-version/commit/e0ba54435e6ffe1714d4b24f1a483c9e64b7c3c7)

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

0.24.3

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

Fixes

- Fix KeyError in TOML file handling. [f3c328a](https://github.com/callowayproject/bump-my-version/commit/f3c328a6b11c5be2e285453714d4e7a3148b1078)

The code has been updated to handle KeyErrors when updating TOML files. If a KeyError is raised, it's now caught and managed depending on the file_change attributes 'ignore_missing_file' or 'ignore_missing_version'. This aims to provide more robust handling of edge cases in TOML files. In addition, a new test case has been added to ensure current version is not required in the configuration.

Fixes 212
Other

- [pre-commit.ci] pre-commit autoupdate. [536c7b1](https://github.com/callowayproject/bump-my-version/commit/536c7b122aa57576fa770b59ca093fc4444bd402)

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

0.24.2

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

Fixes

- Fixed tag version extraction. [67eea3d](https://github.com/callowayproject/bump-my-version/commit/67eea3ddd1dbf0f64d610bc46cf22e638925c26f)

The output of `git describe` uses `-` as a delimiter. Parsing tags caused splits in the parsing of version numbers.

This joins all the remaining parts of the `git describe` with a `-`.
- Fixed pydoclint configuration. [0386073](https://github.com/callowayproject/bump-my-version/commit/0386073d7c298a2bd159fc2c59d08689557e9224)

Page 2 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.