chore(deps): update dependency bump-my-version to v1 #606
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=0.28.1
->>=1.1.2
Release Notes
callowayproject/bump-my-version (bump-my-version)
v1.1.2
Compare Source
Compare the full difference.
Fixes
Other
[pre-commit.ci] pre-commit autoupdate. 10b76f6
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.0 → v0.11.4
Testing write access. 31bab59
v1.1.1
Compare Source
Compare the full difference.
Fixes
Fix fallback search pattern in files. 51ea69f
Refactor
_contains_change_pattern
method by removing unusedcontext
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
v1.1.0
Compare Source
Compare the full difference.
Fixes
Refactor Mercurial SCM support and improve test coverage. acd94d1
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
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
New
Added to the setup section in the contribution doc for the devenv.nix shell. f94cc27
Added devenv.nix and justfile. 653d917
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
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.0
Updates
v1.0.2
Compare Source
Compare the full difference.
Fixes
Fix incorrect evaluation. 3578c87
The check for valid files to add should be
filename
, notself.files
Refactor and improve test structure for file modifications. 8b52174
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]
withList[str]
for Python 3.8+ compatibility. 6fb977cUpdated all instances of
list[str]
with the genericList[str]
from thetyping
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
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.7 → v0.9.9
v1.0.1
Compare Source
Compare the full difference.
Fixes
Fix type hinting compatibility for 3.8. 9c2bb03
Replaced
list
withList
for type hints to ensure compatibility with earlier Python versions.v1.0.0
Compare Source
Compare the full difference.
Breaking Changes
New
v0.33.0
Compare Source
Compare the full difference.
Fixes
Fixed warnings in documentation. 782077d
Refactored PEP621 tests into a class. 2a4f12a
The tests are pretty much the same but renamed for clarity.
Fixed: allow omitting the current version in sample-config. 6b369fe
If the current version is explicitly left empty during the
sample-config
questionnaire, the resultingtool.bumpversion
tablenow lacks a
current_version
key, and will fall back to PEP 621project.version
(if not dynamic). The instruction text specificallyhints at this new functionality.
New
Add test for moveable tags. df787f1
New feature: retrieve and update the PEP 621 project version, if possible. 3032450
When determining the current version, and if
tool.bumpversion.current_version
is not set, attempt to retrieve theversion from
project.version
à la PEP 621. If that setting is notset, 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 inpyproject.toml
as well. We always update,even if the true current version was read from
tool.bumpversion.current_version
instead ofproject.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 wouldotherwise trip up the old test output, and the
None
default would tripup the TOML serializer. Additionally, new tests assert that
project.version
(and correspondingly, thepep621_info
property) iscorrectly honored or ignored, depending on the other circumstances.
Other
[pre-commit.ci] pre-commit autoupdate. 59e8634
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7
Updates
v0.32.2
Compare Source
Compare the full difference.
Fixes
Fixed coverage issue. b0c46a3
Refactor SCMInfo and Config imports. 49995c6
Other
[pre-commit.ci] pre-commit autoupdate. b786638
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6
v0.32.1
Compare Source
Compare the full difference.
Fixes
Fix rich-click deprecation. e1fb9fa
Fix Python 3.8 support. 9b2d894
v0.32.0
Compare Source
Compare the full difference.
Fixes
Refactor CLI config-file option to use @config_option decorator. cd06cbd
Replaced the manual
--config-file
option setup with the@config_option
decorator for cleaner and reusable configuration management. This change simplifies the code and enhances maintainability by consolidating the configuration logic.New
Added pytest-localserver as a test dependency. c84243d
Add ConfigOption for flexible configuration. 1625248
Introduce
ConfigOption
and related utilities inbumpversion.click_config
to handle configuration file paths or URLs. Includes tests for processing options, resolving paths/URLs, and handling errors inresolve_conf_location
anddownload_url
.Added httpx as a dependency. 450154e
Other
[pre-commit.ci] pre-commit autoupdate. 17e8301
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4
Bump actions/setup-python in the github-actions group. c0771b0
Bumps the github-actions group with 1 update: actions/setup-python.
Updates
actions/setup-python
from 5.3.0 to 5.4.0updated-dependencies: - dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
signed-off-by: dependabot[bot] [email protected]
Updates
Updated other subcommands with the new config_option. 279838a
Improve config resolution and add error handling for paths. 43f0435
Refactor
process_value
to handleNone
values and raise aBumpVersionError
for non-existent files. Update related tests to ensure correct behavior for missing, existing, and URL-based config paths. These changes enhance robustness and user feedback in handling configuration inputs.v0.31.1
Compare Source
Compare the full difference.
Fixes
Fix type hinting incompatibility in Python 3.9. 96b29f5
Refactor to use Pathlike type alias for path representation
Unified path type handling across the codebase by introducing the
Pathlike
type alias (Union[str, Path]
). This improves readability and consistency in path-related functions and methods, reducing redundancy. Updated corresponding type annotations, imports, and tests accordingly.v0.31.0
Compare Source
Compare the full difference.
New
Add support for serializing SCMInfo in YAML, JSON, and output. e8611b2
Ensure SCMInfo objects can be serialized into YAML and JSON formats, improving compatibility with configuration and output displays. Updated dumper functions and tests to reflect the new changes and include SCMInfo details in the configurations.
Updates
v0.30.2
Compare Source
Compare the full difference.
Fixes
Fix #388 -
python3.8
type hint compatibility. 5744f86This should address the following error when running
bump-my-version
in a
python3.8
environment:Other
[pre-commit.ci] pre-commit autoupdate. ea3267a
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3
v0.30.1
Compare Source
Compare the full difference.
Fixes
Fixing issues with 3.9 compatibility. cd2b193
Fixes #284. Add UTF-8 encoding to subprocess.run in run_command. 6c856b6
Explicitly set the encoding to "utf-8" in the subprocess.run call to ensure consistent handling of command output. This prevents potential encoding-related issues when processing command results.
v0.30.0
Compare Source
Compare the full difference.
Fixes
Fixed normalized paths in is_subpath. d1c180b
Fix formatting in docs. 5fe387c
New
Add handling for git path addition with new test coverage. 8ad5c82
Enhances the
Git
class by adding theadd_path
method, improving control over tracked files. Includes comprehensive test cases to validate subpath handling, handle command failures, and ensure robustness against invalid inputs. Also includes minor refactoring with updated exception handling and code comments.Added tests for
utils.is_subpath
. 4e993edAdd support for 'moveable_tags' configuration option. 2a2f1e6
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.
Add support for 'moveable_tags' configuration option. dd1efa5
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.
Added additional logging verbosity configuration in setup_logging. 2b420b8
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.
Other
Merge remote-tracking branch 'origin/moving-tags' into moving-tags. a2b7bd1
[pre-commit.ci] pre-commit autoupdate. d03b1da
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.2
[pre-commit.ci] pre-commit autoupdate. 584711b
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.8.6
[pre-commit.ci] pre-commit autoupdate. c583694
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4
Bump softprops/action-gh-release from 1 to 2 in the github-actions group. 787c241
Bumps the github-actions group with 1 update: softprops/action-gh-release.
Updates
softprops/action-gh-release
from 1 to 2updated-dependencies: - dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
signed-off-by: dependabot[bot] [email protected]
Updates
Updated some tests. 4013d86
Remove legacy SCM implementation and add new SCM tests. ddbe21e
Replaced the outdated
scm_old.py
with a focused and updated SCM implementation. Added extensive tests for the newSCMInfo
behavior, path handling, and commit/tag logic, ensuring robust functionality for Git and Mercurial. Updated fixtures and test configurations accordingly.Rename
scm.py
toscm_old.py
and add new utility functions. dac965dRefactored SCM-related imports to use the renamed
scm_old.py
for better module organization. Introducedis_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.v0.29.0
Compare Source
Compare the full difference.
New
Add support for specifying current version in
do_show
. 878197fThis update introduces a
--current-version
option to theshow
command and passes it into thedo_show
function. If provided, thecurrent_version
is added to the configuration, allowing more control over version display or manipulation.Updates
Update README to clarify pre_n handling with distance_to_latest_tag. c027879
Revised the
parse
expression to excludepre_n
and updatedserialize
examples to usedistance_to_latest_tag
instead. Fixes #272v0.28.3
Compare Source
Compare the full difference.
Fixes
Fixed tag-name output. 0e773ec
Fixed PACKAGE env variable. 76c31c4
Fixed syntax errors in scripts. 56dfac0
Fixes missing runs-on in workflow. 5fe8ce5
Fix: resolve config path to align with the actual repository root. c872315
Fixed docs. 1d26b55
Fixed doc generation. aa95762
New
Added release workflow step. d56650a
Added write permissions for contents in github action. 85f19df
Other
Debugging the release workflow. db2eb9e
[pre-commit.ci] pre-commit autoupdate. 37c21a4
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.8.3
Bump actions/setup-python in the github-actions group. 3dd6666
Bumps the github-actions group with 1 update: actions/setup-python.
Updates
actions/setup-python
from 5.1.1 to 5.3.0updated-dependencies: - dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
signed-off-by: dependabot[bot] [email protected]
Updates
v0.28.2
Compare Source
Compare the full difference.
Fixes
Fixed Ruff errors and workflow permissions. 11c1e42
Fixed more uv run workflows. d829276
Fixed installation of test dependencies. cbf10f2
Fixed issue with python install. 6e2da8d
Fixed GitHub workflows. 86a0a3b
Refactor warning display with Rich formatting. 2b7c905
Replace plain click-based warnings with styled Rich panels for better visibility. This enhances user experience by providing clearer and more visually organized warnings.
Refactored dependencies config. 39fed07
project.optional-dependencies
todependency-groups
New
Other
[pre-commit.ci] auto fixes from pre-commit.com hooks. 183a6f2
for more information, see https://pre-commit.ci
[pre-commit.ci] pre-commit autoupdate. 075d0da
updates: - github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.2
[pre-commit.ci] pre-commit autoupdate. 6ed9f0e
updates: - github.com/astral-sh/ruff-pre-commit: v0.7.1 → v0.7.4
Bump codecov/codecov-action from 4 to 5 in the github-actions group. 4194af8
Bumps the github-actions group with 1 update: codecov/codecov-action.
Updates
codecov/codecov-action
from 4 to 5updated-dependencies: - dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
signed-off-by: dependabot[bot] [email protected]
Updates
Updated uv.lock. 09b825b
Update setup section in contributing guide. 4bc279b
Use extra dependencies specifier (referring to pyproject.toml) in the instructions, instead of requirements txt files (which were removed in previous commits).
Configuration
📅 Schedule: Branch creation - "* 0-3 1 * *" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.