Releases: callowayproject/bump-my-version
0.28.1
Fixes
- Fix format arg help text for show command. cf65ec2
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
0.28.0
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
inputs
section in GHA workflow example. 813e7f5
Other
-
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
- Changed dependency manager to uv. cce9e1d
0.27.0
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
0.26.1
Fixes
-
Fixed missing new version info in some hook environments. 24a9bdc
Introduce the
new_version_env
function and update existing functions (get_setup_hook_env
andget_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
0.26.0
Fixes
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_hooks
fields 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.
0.25.4
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
- Switched from using both version parts and version components to simply version components.
Updates
0.25.3
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_part
toversioning.version_config
. 5b90817Moved
version_part.py
toversioning/version_config.py
and updated all import statements accordingly. Enhanced error handling inVersionConfig
by addingraise_error
flag 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_bump
command for detailed logging control.
0.25.2
0.25.1
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
0.25.0
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_path
and 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_root
field to store the root path of the repository in the data classes. Refactored subprocess handling to use a newrun_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
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