callowayproject / bump-my-version

A small command line tool to simplify releasing software by updating all version strings in your source code by the correct increment and optionally commit and tag the changes.
https://callowayproject.github.io/bump-my-version/
MIT License
305 stars 19 forks source link

Fix JSON serialization #223

Closed coordt closed 1 month ago

coordt commented 1 month ago

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.

github-actions[bot] commented 1 month ago

PR Preview Action v1.4.7 :---: :rocket: Deployed preview to https://callowayproject.github.io/bump-my-version/pr-preview/pr-223/ on branch gh-pages at 2024-08-08 19:28 UTC

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.64%. Comparing base (f7d0909) to head (781c447). Report is 2 commits behind head on master.

Files Patch % Lines
bumpversion/show.py 33.33% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #223 +/- ## ========================================== - Coverage 93.76% 93.64% -0.12% ========================================== Files 25 25 Lines 1619 1622 +3 Branches 319 320 +1 ========================================== + Hits 1518 1519 +1 - Misses 73 75 +2 Partials 28 28 ``` | [Flag](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/223/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | Coverage Δ | | |---|---|---| | [python-3.10](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/223/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.64% <50.00%> (-0.12%)` | :arrow_down: | | [python-3.11](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/223/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.64% <50.00%> (-0.12%)` | :arrow_down: | | [python-3.8](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/223/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.56% <50.00%> (-0.12%)` | :arrow_down: | | [python-3.9](https://app.codecov.io/gh/callowayproject/bump-my-version/pull/223/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject) | `93.56% <50.00%> (-0.12%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=callowayproject#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 month ago

Version hint: patch Current version: 0.25.1 New version (when merged): 0.25.2

Comment ID: Display the version hint-auto-generated