Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to manage moving tags #281

Merged
merged 24 commits into from
Jan 26, 2025
Merged

Add ability to manage moving tags #281

merged 24 commits into from
Jan 26, 2025

Conversation

coordt
Copy link
Member

@coordt coordt commented Jan 26, 2025

No description provided.

coordt and others added 8 commits January 17, 2025 10:48
Refactored SCM-related imports to use the renamed `scm_old.py` for better module organization. Introduced `is_subpath` utility to simplify path checks and added support for moveable tags in version control systems. These changes improve code structure and extend functionality for tagging.
Updated the logging verbosity levels to include formatting options for different verbosity levels. Added a new level (3) with detailed output including file path and line number. Refactored setup_logging to properly handle verbosity and log format settings.
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.6...v0.9.2)
- [github.com/jsh9/pydoclint: 0.5.14 → 0.6.0](jsh9/pydoclint@0.5.14...0.6.0)
Replaced the outdated `scm_old.py` with a focused and updated SCM implementation. Added extensive tests for the new `SCMInfo` behavior, path handling, and commit/tag logic, ensuring robust functionality for Git and Mercurial. Updated fixtures and test configurations accordingly.
Copy link

Version hint: minor
Current version: 0.29.0
New version (when merged): 0.30.0

Comment ID: Display the version hint-auto-generated

Copy link

github-actions bot commented Jan 26, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://callowayproject.github.io/bump-my-version/pr-preview/pr-281/

Built to branch gh-pages at 2025-01-26 14:58 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link

codecov bot commented Jan 26, 2025

Codecov Report

Attention: Patch coverage is 85.48387% with 54 lines in your changes missing coverage. Please review.

Project coverage is 93.54%. Comparing base (584711b) to head (5a4e763).
Report is 26 commits behind head on master.

Files with missing lines Patch % Lines
bumpversion/scm/hg.py 67.69% 17 Missing and 4 partials ⚠️
bumpversion/scm/git.py 89.17% 13 Missing and 4 partials ⚠️
bumpversion/scm/models.py 88.05% 13 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #281      +/-   ##
==========================================
- Coverage   93.97%   93.54%   -0.43%     
==========================================
  Files          26       28       +2     
  Lines        1725     1828     +103     
  Branches      188      195       +7     
==========================================
+ Hits         1621     1710      +89     
- Misses         76       91      +15     
+ Partials       28       27       -1     
Flag Coverage Δ
python-3.10 93.54% <85.48%> (-0.43%) ⬇️
python-3.11 93.54% <85.48%> (-0.43%) ⬇️
python-3.12 93.54% <85.48%> (-0.43%) ⬇️
python-3.13 93.54% <85.48%> (-0.43%) ⬇️
python-3.9 93.54% <85.48%> (-0.43%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coordt coordt merged commit afcfe25 into master Jan 26, 2025
14 of 17 checks passed
@coordt coordt deleted the moving-tags branch January 26, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant