Update dependency bump-my-version to <0.29.1 #351
Closed
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.11.0-><0.29.1Release Notes
callowayproject/bump-my-version (bump-my-version)
v0.29.0Compare Source
Compare the full difference.
New
Add support for specifying current version in
do_show. 878197fThis update introduces a
--current-versionoption to theshowcommand and passes it into thedo_showfunction. If provided, thecurrent_versionis 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
parseexpression to excludepre_nand updatedserializeexamples to usedistance_to_latest_taginstead. Fixes #272v0.28.3Compare 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-pythonfrom 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] support@github.com
Updates
v0.28.2Compare 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-dependenciestodependency-groupsNew
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-actionfrom 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] support@github.com
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).
v0.28.1Compare Source
Compare the full difference.
Fixes
Other
[pre-commit.ci] pre-commit autoupdate. 9fb0347
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.1
Output hooks scripts by default. 0a042aa
Skip scm tests if the command is not installed. 2e68517
v0.28.0Compare Source
Compare the full difference.
New
Added container labels and version hooks. d4cb8f2
Add Docker support and configure Dependabot for Docker updates. 0315db4
Introduce a Dockerfile for containerized environments and add a .dockerignore file to exclude unnecessary files. Also, update dependabot.yml to include daily checks for Docker image updates.
Add
inputssection in GHA workflow example. 813e7f5Other
Switch from ADD to COPY in Dockerfile. a5fc5c0
This change updates the Dockerfile to use the COPY instruction instead of ADD. COPY is preferred when only copying files because it is more explicit and simpler.
[pre-commit.ci] pre-commit autoupdate. 7c48f98
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.8 → v0.6.9
Updates
v0.27.0Compare Source
Compare the full difference.
Fixes
Fixed test to look for warning logs. 538c420
Refactor and enhance error handling. c84bfa7
Updated subprocess calls to disable check, refined lint configurations, fixed type annotations and exceptions, and improved dictionary path validation.
New
Add HookError for failed hook execution with tests. 39fc233
Raise HookError when a hook script exits with a non-zero status. Modified logger to display warnings instead of debug messages in such scenarios. Added tests to ensure exceptions are raised for failed hooks.
Other
[pre-commit.ci] pre-commit autoupdate. 130478d
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.5 → v0.6.7
Create FUNDING.yml. 2bda200
v0.26.1Compare Source
Compare the full difference.
Fixes
Fixed missing new version info in some hook environments. 24a9bdc
Introduce the
new_version_envfunction and update existing functions (get_setup_hook_envandget_pre_commit_hook_env) to include new version environment variables. Added new tests for verifying the inclusion of OS, SCM, current, and new version information in hook environments.New
Add current and previous version outputs to the GHA. 0650ca8
Add environment variable to README example. 88c9790
Add GitHub action with support for commit/tag push workflow trigger. 2cdb742
Other
[pre-commit.ci] pre-commit autoupdate. d21d6df
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.2 → v0.6.4
[pre-commit.ci] pre-commit autoupdate. b6773ac
updates: - github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.2
Updates
Updated pre-commit versions. 6f5d56b
Update example to better showcase the GHA capabilities. e3ff9a1
Update README.md. f280371
v0.26.0Compare Source
Compare the full difference.
Fixes
Fix issues with environment test on windows. 04a98d0
Fixed redundant tests for SCM. e50e991
New
Added hook suite documentation. b73a6e1
Added hooks to bump command. 3b638e0
Added tests for hooks. 8446567
Add hooks configuration fields. d6b24f0
Introduced
setup_hooks,pre_bump_hooks, andpost_bump_hooksfields to configuration models. Updated corresponding test fixtures to verify these new fields.Add current_tag field to scm_info. 304c599
Updated the scm_info structure to include a new field, current_tag, across various configuration files and source code. This ensures that the current tag is tracked and represented in the output formats correctly.
Other
Enhance hook handling and testing across hook types. 49f1953
Introduced unified handling for setup, pre-commit, and post-commit hooks, including dry-run support.
Added comprehensive tests to ensure the correct behavior for all hook phases, including cases where no hooks are specified or in dry run mode.
Updated environment setup to use a common version environment function.
[pre-commit.ci] pre-commit autoupdate. 4342198
updates: - github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.5.7
Updates
Changed the terminology for hooks. 049b470
Change pre-bump and post-bump to pre-commit and post-commit to better indicate their order of operations.
v0.25.4Compare Source
Compare the full difference.
Fixes
Fixed terminology in tests. 0338da2
Updated test parameter and assertion messages to use "version component" instead of "version part" for clarity and consistency. This change affects the test cases that detect bad or missing version inputs.
Fixed documentation layout. 57958ea
Fixed inconsistent terms in docstrings. dfdf23e
Updates
Updated documentation. 5aedd64
Removed old requirements. ec95eef
v0.25.3Compare Source
Compare the full difference.
Fixes
Refactor version parsing in visualize function. 5f25300
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_parttoversioning.version_config. 5b90817Moved
version_part.pytoversioning/version_config.pyand updated all import statements accordingly. Enhanced error handling inVersionConfigby addingraise_errorflag and relevant exception raising for invalid version strings. Refined tests to reflect these changes.Fix version visualization and add verbose logging. ad46978
Raise an exception for unparsable versions and aggregate visualization output in a list before printing. Add a verbose logging option to the
show_bumpcommand for detailed logging control.v0.25.2Compare Source
Compare the full difference.
Fixes
Fix JSON serialization. d3f3022
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.
v0.25.1Compare Source
Compare the full difference.
Fixes
Fixes mypy pre-commit checking. f7d0909
Fixes repository path checks. ff3f72a
Checked for relative paths when determining if the file was part of the repo or not.
Fixed test to use globs. 72f9841
Other
[pre-commit.ci] pre-commit autoupdate. 58cc73e
updates: - github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6
v0.25.0Compare Source
Compare the full difference.
Fixes
Refactor error handling and improve logging in utils. 890b692
Extracted error formatting to a dedicated function and applied it across the codebase. Improved command path handling in
add_pathand enhanced test coverage with necessary imports and logging configurations.Fix dictionary merging in SCMInfo. 5fb5ef2
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
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
Introduced the
repository_rootfield to store the root path of the repository in the data classes. Refactored subprocess handling to use a newrun_commandutility for improved readability and error handling consistency. Removed unnecessary dependency from.pre-commit-config.yamlto streamline dependencies.Other
Simplify run_command return type. b91224e
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
updates: - github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.5
v0.24.3Compare Source
Compare the full difference.
Fixes
Fix KeyError in TOML file handling. f3c328a
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
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.2
v0.24.2Compare Source
Compare the full difference.
Fixes
Fixed tag version extraction. 67eea3d
The output of
git describeuses-as a delimiter. Parsing tags caused splits in the parsing of version numbers.This joins all the remaining parts of the
git describewith a-.Fixed pydoclint configuration. 0386073
v0.24.1Compare Source
Compare the full difference.
Fixes
Refactor error handling in SCM and add error handling test. 7ca6356
This commit includes a new test in test_scm.py to verify the correct formatting and raising of subprocess errors in the SCM module. Additionally, the subprocess error handling has been refactored in the SCM module to include a new method, format_and_raise_error, for improved code readability and reusability.
Other
[pre-commit.ci] pre-commit autoupdate. 60acc2d
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.9 → v0.4.10
v0.24.0Compare Source
Compare the full difference.
New
Add VersionNotFoundError test in test_bump.py. cb050a8
The code in test_bump.py file has been modified to include a test for VersionNotFoundError exception. This ensures that the implementation properly handles cases where a specified version could not be found.
Add test for no commit on modification error. 7527029
A test has been added to the bumpversion library to ensure that no commit and tag is made if there is an error modification. Specifically, the test checks the "do_bump" function and asserts that "mock_commit_and_tag" and "mock_update_config_file" are not called under these conditions.
Other
[pre-commit.ci] pre-commit autoupdate. 0e3a154
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.4.9
Updates
Improve error message for SCM command failures. 8f72f86
The error message for failures in the SCM command execution has been enhanced. Now it displays not only the command's return code but also the standard output and error, improving the debugging process.
v0.23.0Compare Source
Compare the full difference.
Fixes
Refactor valid_bumps and invalid_bumps to include_bumps and exclude_bumps. 2df57cc
The configuration parameters
valid_bumpsandinvalid_bumpswere renamed toinclude_bumpsandexclude_bumpsrespectively. This new naming better denotes their function, and the changes were consistently applied across all related files and tests. Numerous fixture outputs were also updated to reflect these changes.Fixed spelling in CODE_OF_CONDUCT.md. 254ea44
New
Add file filtering based on valid and invalid bumps. f9f7f96
This commit introduces the ability to filter files based on whether the specified bump type is valid or not. It adds
valid_bumpsandinvalid_bumpslists in the file configurations and adjusts the bumping process to consider these configurations. Tests are updated to reflect these new handling of valid and invalid bumps.Add new files to .gitignore. 34e4dc1
Several new file types have been added to .gitignore for ignoring during commits. These include '.python-version', 'requirements-dev.lock', and 'requirements.lock' files.
Add valid_bumps and invalid_bumps to file configuration. 9458851
Updated the configuration file model to support valid_bumps and invalid_bumps. This feature provides control over which version section updates can trigger file changes. Adjusted various test fixtures and cleaned up tests to match these changes. Also, some updates were made to the documentation accordingly.
Other
[pre-commit.ci] pre-commit autoupdate. e44f6af
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.8
Updates
Update documentation for clarification. 2224808
The changes made update the wording in the documentation to clarify the roles of
include_bumpsandexclude_bumpsin the bump-my-version configuration. Additionally, unnecessary repetition was removed and overlapping examples were also corrected.Update docs/reference/configuration.md. 7c801c0
co-authored-by: wkoot 3715211+wkoot@users.noreply.github.com
v0.22.0Compare Source
Compare the full difference.
New
Add extensive documentation for the 'show' subcommand. 91409d8
This commit adds extensive documentation for the
showsubcommand in the program's reference. It also includes smaller updates and corrections to other parts of the documentation. An in-depth example usage ofshowis added both to the dedicatedshow.mdfile and in the function's docstring.Updates
v0.21.1Compare Source
Compare the full difference.
Other
[pre-commit.ci] auto fixes from pre-commit.com hooks. 1b57c2b
for more information, see https://pre-commit.ci
[pre-commit.ci] pre-commit autoupdate. e813eda
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4
[pre-commit.ci] pre-commit autoupdate. 05a0dd6
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.2 → v0.4.3
Updates
v0.21.0Compare Source
Compare the full difference.
Fixes
Fixed a bug in the glob tests. 1041fe9
Was not properly looking in the correct relative directories.
Fixed test for Windows glob paths. ea45c4c
Fixed exclusion logic with wcmatch. 1c391be
Refactored glob matching to use the wcmatch library. bbf4ae0
New
Adds
glob_excludefile specification parameter. 420e3bdUser can prune the files resolved via the
globparameter.Fixes #184
Other
[pre-commit.ci] pre-commit autoupdate. ce02aa7
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2
v0.20.3Compare Source
Compare the full difference.
Fixes
Fixed test logging setup. 3777f27
Fixed the indentation problem. ec3cd99
Other
[pre-commit.ci] pre-commit autoupdate. e916f87
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1
v0.20.2Compare Source
Compare the full difference.
Fixes
Fixed the rendering of numeric version components. c522c75
Fixed code block in the README. b4ff9f3
Other
[pre-commit.ci] pre-commit autoupdate. 9b09da8
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.3.7
v0.20.1Compare Source
Compare the full difference.
Fixes
Fix typos discovered by codespell. d5c33a3
Fixed relative references. 2aa1011
Refactored the docs. b63a9e7
Other
[pre-commit.ci] pre-commit autoupdate. f438bc6
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5
Pre-commit: Discover typos with codespell. 2509fc7
Related to:
[pre-commit.ci] pre-commit autoupdate. be5cb79
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.3 → v0.3.4
v0.20.0Compare Source
Compare the full difference.
Fixes
New
Added
always_incrementattribute for parts. 53ee848This is a requirement for CalVer to ensure they always increment with each bump, but it will work for any type.
Added CalVer function and formatting. 7a0e639
calver_formatattribute for CalVer parts.Updates
v0.19.3Compare Source
Compare the full difference.
Fixes
Fixed packaging of dev releases. 84254e0
Fixed platform-dependent encoding. f8b4d65
encoding="utf-8"to all writes.Fixed version.yaml workflow. 10b007c
Other
[pre-commit.ci] pre-commit autoupdate. e92000a
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.3.3
Bump the github-actions group with 3 updates. a422c58
Bumps the github-actions group with 3 updates: actions/checkout, actions/setup-python and codecov/codecov-action.
Updates
actions/checkoutfrom 3 to 4Updates
actions/setup-pythonfrom 4 to 5Updates
codecov/codecov-actionfrom 3 to 4updated-dependencies: - dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Keep GitHub Actions up to date with GitHub's Dependabot. 2e55fa1
v0.19.0Compare Source
Compare the full difference.
Fixes
Updates
Removes ability to call the CLI without subcommand. e56c944
BREAKING CHANGE: You must use bump-my-version bump
v0.18.3Compare Source
Compare the full difference.
Fixes
Fixed --ignore-missing-version and --ignore-missing-files options. 7635873
The CLI options were defaulting to
Falsewhen missing. This overrode the configuration.Fixes #140
v0.18.2Compare Source
Compare the full difference.
Fixes
v0.18.1Compare Source
Compare the full difference.
Fixes
Fixed type annotation in config. 2988ede
Fixed naming issue for docs. 2850aa7
New
Added how-to doc. 68643a9
Other
[pre-commit.ci] pre-commit autoupdate. c495d3d
updates: - github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2
Updates
v0.17.4Compare Source
Compare the full difference.
Fixes
Fixed linting errors. 9515afc
Fix encoding when reading text. c03476a
Fixes #68
Other
[pre-commit.ci] pre-commit autoupdate. 491b4aa
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0
v0.17.3Compare Source
Compare the full difference.
Fixes
Refactored VersionComponentConfig to VersionComponentSpec. b538308
More consistent with VersionSpec
New
Other
[pre-commit.ci] pre-commit autoupdate. a2a3fe6
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.14
Updates
v0.17.2Compare Source
Compare the full difference.
Fixes
Fixed some tests. 593a4ee
Refactored serialization. 0ac2cd8
Fixed extra capture group in PEP440 parser. 384fd99
Refactored verioning models. 88e7f71
depends_onversion component configurationdepends_onis required for PEP440 versioningFixed None as value for a function. f8c4d05
Fixed bad imports. 5c86d51
Refactored versioning models and tests. 7d05414
Refactored version parsing. 5ed546b
Refactored versioning functions and version parts. be87721
Fixed timezone of a test. 0e01253
v0.17.1Compare Source
Compare the full difference.
Fixes
Fixed bad error checking with SCM. 10e5d7d
Fix missing current version within the context. a5dca4c
v0.17.0Compare Source
Compare the full difference.
Fixes
Fixed Py3.8 type annotation. c15b23b
Fixed some output in visualizing. 406f97a
Fixed bad type annotation. 8f4bedf
Fixed bad test imports. a74342b
Refactored the create subcommand. f529d28
New
Added
show-bumpsubcommand. 0bbd814bumpcommandAdded sample-config feature. 3d0f67d
Updates
Configuration
📅 Schedule: Branch creation - "after 7am and before 4pm on monday" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.