NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #4063 most downloaded on PyPI
Version bump your Python project
Last release 1 months ago
06 Aug 2026
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
92 releases · first in 2023
One column per quarter.
Add tests to cover new push on tag. d73288a
Adjust logging levels and add warning for missing configuration files in tests. 4420d9e
Adjust logging levels and add warning for missing configuration files in tests. 4420d9e
Fixes #421
Bump the github-actions group across 1 directory with 2 updates. 0944890
Bumps the github-actions group with 2 updates in the / directory: actions/checkout and actions/setup-python.
Updates actions/checkout from 6 to 7
Updates actions/setup-python from 6 to 7
updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
[pre-commit.ci] pre-commit autoupdate. 39a2478
updates: - github.com/astral-sh/ruff-pre-commit: v0.15.17 → v0.15.22
Fix colorization of CLI in docs, upgrade to latest click-extra. ee11fb2
Fix colorization of CLI in docs, upgrade to latest click-extra. ee11fb2
Refs https://github.com/callowayproject/bump-my-version/issues/406#issuecomment-4731773072
Standardize Markdown usage in documentation by replacing deprecated :::field-list syntax with modern ///html. Adjusted configurations in mkdocs.yml an…
Bump codecov/codecov-action from 6 to 7 in the github-actions group. 430128e
Bumps the github-actions group with 1 update: codecov/codecov-action.
Updates codecov/codecov-action from 6 to 7
updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
[pre-commit.ci] pre-commit autoupdate. 8124a90
updates: - github.com/astral-sh/ruff-pre-commit: v0.15.15 → v0.15.17
[pre-commit.ci] pre-commit autoupdate. da390f0
updates: - github.com/astral-sh/ruff-pre-commit: v0.15.8 → v0.15.15
Bump softprops/action-gh-release from 2 to 3 in the github-actions group. f966be5
Bumps the github-actions group with 1 update: softprops/action-gh-release.
Updates softprops/action-gh-release from 2 to 3
updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Disable shell hooks in configuration defaults and models. 8a8aa51
Fixes #407
Standardize Markdown usage in documentation by replacing deprecated :::field-list syntax with modern ///html. Adjusted configurations in mkdocs.yml and .changelog-config.yaml to align with updated formatting. 8fac9fb
[pre-commit.ci] pre-commit autoupdate. 6433302
updates: - github.com/astral-sh/ruff-pre-commit: v0.15.1 → v0.15.8
Bump codecov/codecov-action from 5 to 6 in the github-actions group. b32d019
Bumps the github-actions group with 1 update: codecov/codecov-action.
Updates codecov/codecov-action from 5 to 6
updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Bump actions/download-artifact from 7 to 8 in the github-actions group. 14d8fa1
Bumps the github-actions group with 1 update: actions/download-artifact.
Updates actions/download-artifact from 7 to 8
updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Update dependency versions (pyproject.toml, .pre-commit-config.yaml, and uv.lock); add click-extra plugin to mkdocs configuration. c7954cb
Fixes #406
Update dependency versions (anyio, click, virtualenv) and adjust constraints in uv.lock and pyproject.toml. c2cf2be
Fixes #410
Update workflows to use properdocs instead of mkdocs; adjust linter exclusions in pyproject.toml. b63b3dc
Update tests to mock httpx2 instead of httpx for download URL functionality. cc78fd4
Update dependency constraints and versions in uv.lock. ce7be1f
Update CHANGELOG formatting for clarity and consistency. 64a55c3
Refactor hook script execution to handle platform-specific argument parsing; update typing imports. a46b63d
Add allow_shell_hooks option for safe hook execution; improve shell syntax handling. 036ee1a
allow_shell_hooks configuration to control shell metacharacters in hooks.shell=False) unless explicitly enabled.Standardize formatting, spacing, and indentation across documentation and templates for consistency. 1b9eb42
Modularize CLI commands into individual files: bump, replace, show, show-bump, and sample-config; add corresponding tests and shared options file. c35c431
Make --regex option nullable; add tests for precedence between CLI flags and config. c78bbef
Update pre-commit, improve is_subpath logic, and enhance documentation. 919c66b
ruff-pre-commit to v0.15.1 in pre-commit config.is_subpath logic to handle edge cases and add path resolution.test_is_subpath.AGENTS.md with pytest execution instructions.Refactor movable tag logic to delete remote tags before pushing; update tests and documentation. a0d9580
[pre-commit.ci] pre-commit autoupdate. ed0b8f6
updates: - github.com/astral-sh/ruff-pre-commit: v0.14.10 → v0.15.0
Fix: Set default is_flag value to False in click_config. 6f5d13d
Fix: Set default is_flag value to False in click_config. 6f5d13d
Fix Jinja template includes to use .jinja file extension consistently. 13b7902
Bump Click dependency to version 8.3.1 for Python 3.10+. c9db946
Bump click support to <8.4. be429e8
fixes #377
Bump the github-actions group across 1 directory with 2 updates. 05edf97
Bumps the github-actions group with 2 updates in the / directory: actions/checkout and actions/download-artifact.
Updates actions/checkout from 5 to 6
Updates actions/download-artifact from 6 to 7
updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
[pre-commit.ci] pre-commit autoupdate. d2edfae
updates: - github.com/astral-sh/ruff-pre-commit: v0.14.6 → v0.14.10
Refactor: Simplify Mercurial test skip condition using pytest.mark.skipif. a596f61
Refactor: Simplify Mercurial test skip condition using pytest.mark.skipif. a596f61
Fix: Skip Mercurial tests if Mercurial is not available. bb5ff24
Fix README.md's workflow permissions and token usage. bf4397e
id-token, pull-requests, and contents in the build job.GH_TOKEN with GITHUB_TOKEN for consistency.MANIFEST.in file.Fix outdated link URL in docs leading to a 404. 440300a
Compatibility with click 8.3, handle Sentinel values. 554922d
[pre-commit.ci] pre-commit autoupdate. 4b844b5
Bump actions/download-artifact from 5 to 6 in the github-actions group. f2613d7
Bumps the github-actions group with 1 update: actions/download-artifact.
Updates actions/download-artifact from 5 to 6
updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Bump python from 3.12-slim-bookworm to 3.14-slim-bookworm. 1d1d0fe
Bumps python from 3.12-slim-bookworm to 3.14-slim-bookworm.
updated-dependencies: - dependency-name: python dependency-version: 3.14-slim-bookworm dependency-type: direct:production
signed-off-by: dependabot[bot] support@github.com
[pre-commit.ci] pre-commit autoupdate. 778b8b5
updates: - github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.14.5
Fixed release hint rules. fbd3deb
Fixed release hint rules. fbd3deb
Fix mercurial install on Windows. c230f4a
Fix breaking Click dependency. 5a4073b
<8.2.2uv.lock regenerated with upgraded dependencies[pre-commit.ci] pre-commit autoupdate. 1af3e18
updates: - github.com/astral-sh/ruff-pre-commit: v0.13.0 → v0.13.2
Fix is_subpath docstring for clarity and detailed explanation of functionality. 68041e8
Fix is_subpath docstring for clarity and detailed explanation of functionality. 68041e8
Refactor tests to improve readability by using Arrange-Act-Assert pattern and updating httpserver methods. 164c99d
Fix: set "click<8.3" and adjust some pytest_httpserver methods to latest. 8374073
[pre-commit.ci] pre-commit autoupdate. 58946b2
updates: - github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.1
uv.lock and pyproject.toml to refactor dependency groups and align formatting. 8b4d8aaFixed code style, ensure encoding consistency, and update dependencies in pre-commit configuration. 91d5eff
Bump the github-actions group across 1 directory with 3 updates. b8e2f1c
Bumps the github-actions group with 3 updates in the / directory: actions/checkout, actions/setup-python and actions/download-artifact.
Updates actions/checkout from 4 to 5
Updates actions/setup-python from 5 to 6
Updates actions/download-artifact from 4 to 5
updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
[pre-commit.ci] pre-commit autoupdate. 846fedd
updates: - github.com/astral-sh/ruff-pre-commit: v0.12.3 → v0.12.12
Extend globbing functionality with EXTGLOB support in configuration utils. b7eefab
Extend globbing functionality with EXTGLOB support in configuration utils. b7eefab
Fixes #357
[pre-commit.ci] pre-commit autoupdate. a1a2a16
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.3
Fix broken link to API. 4591652
Fix broken link to API. 4591652
https: //callowayproject.github.io/bump-my-version/reference/api/ is 404.
[pre-commit.ci] pre-commit autoupdate. 7f9e5c1
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.10 → v0.11.12
[pre-commit.ci] pre-commit autoupdate. d3169af
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.9 → v0.11.10
Fixed test assertion from stdout to output. e59c7f7
Fixed issues in GitHub workflows. c900001
Fixed issues in GitHub workflows. c900001
Fixes for CalVer auto_increment behavior. a034d5f
If auto_increment is explicitly set, the value is kept. Otherwise, it is set to True.
Introduced new tests to verify CalVer component behavior with and without auto-increment enabled.
[pre-commit.ci] pre-commit autoupdate. 9cb5598
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.8 → v0.11.9
[pre-commit.ci] pre-commit autoupdate. 1fa2a60
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.7 → v0.11.8
[pre-commit.ci] auto fixes from pre-commit.com hooks. f0df17d
for more information, see https://pre-commit.ci
[pre-commit.ci] pre-commit autoupdate. 5d0dc39
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.6 → v0.11.7
[pre-commit.ci] pre-commit autoupdate. efe46e6
updates: - github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.11.6
Fix ident level when bump() or parse() throws exceptions. dd6a841
[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
Fix fallback search pattern in files. 51ea69f
Refactor Mercurial SCM support and improve test coverage. acd94d1
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
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.
[pre-commit.ci] pre-commit autoupdate. a85b47f
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.0
Fix incorrect evaluation. 3578c87
Fix incorrect evaluation. 3578c87
The check for valid files to add should be filename, not self.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
Replace list[str] with List[str] for Python 3.8+ compatibility. 6fb977c
Updated all instances of list[str] with the generic List[str] from the typing 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
Fix type hinting compatibility for 3.8. 9c2bb03
Fix type hinting compatibility for 3.8. 9c2bb03
Replaced list with List for type hints to ensure compatibility with earlier Python versions.
Added breaking change parsing. 00c4e7b
Fixed warnings in documentation. 782077d
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 resulting tool.bumpversion table
now lacks a current_version key, and will fall back to PEP 621
project.version (if not dynamic). The instruction text specifically
hints at this new functionality.
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 the
version from project.version à la PEP 621. If that setting is not
set, 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 in pyproject.toml as well. We always update,
even if the true current version was read from
tool.bumpversion.current_version instead of project.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 would
otherwise trip up the old test output, and the None default would trip
up the TOML serializer. Additionally, new tests assert that
project.version (and correspondingly, the pep621_info property) is
correctly honored or ignored, depending on the other circumstances.
[pre-commit.ci] pre-commit autoupdate. 59e8634
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7
Refactor SCMInfo and Config imports. 49995c6
Fixed coverage issue. b0c46a3
Refactor SCMInfo and Config imports. 49995c6
[pre-commit.ci] pre-commit autoupdate. b786638
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6
Fix rich-click deprecation. e1fb9fa
Refactor CLI config-file option to use @config_option decorator. cd06cbd
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.
Added pytest-localserver as a test dependency. c84243d
Add ConfigOption for flexible configuration. 1625248
Introduce ConfigOption and related utilities in bumpversion.click_config to handle configuration file paths or URLs. Includes tests for processing options, resolving paths/URLs, and handling errors in resolve_conf_location and download_url.
Added httpx as a dependency. 450154e
[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.0
updated-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
Updated other subcommands with the new config_option. 279838a
Improve config resolution and add error handling for paths. 43f0435
Refactor process_value to handle None values and raise a BumpVersionError 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.
Fix type hinting incompatibility in Python 3.9. 96b29f5
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.
Add support for serializing SCMInfo in YAML, JSON, and output. e8611b2
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.
Fix #388 - python3.8 type hint compatibility. 5744f86
Fix #388 - python3.8 type hint compatibility. 5744f86
This should address the following error when running bump-my-version
in a python3.8 environment:
def is_subpath(parent: Path | str, path: Path | str) -> bool:
**typeerror:** unsupported operand type(s) for |: 'type' and 'type'
[pre-commit.ci] pre-commit autoupdate. ea3267a
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3
Fixing issues with 3.9 compatibility. cd2b193
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.
Fixed normalized paths in is_subpath. d1c180b
Add handling for git path addition with new test coverage. 8ad5c82
Enhances the Git class by adding the add_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. 4e993ed
Add 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.
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 2
updated-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] support@github.com
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 new SCMInfo behavior, path handling, and commit/tag logic, ensuring robust functionality for Git and Mercurial. Updated fixtures and test configurations accordingly.
Rename scm.py to scm_old.py and add new utility functions. dac965d
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.
Add support for specifying current version in do_show. 878197f
Add support for specifying current version in do_show. 878197f
This update introduces a --current-version option to the show command and passes it into the do_show function. If provided, the current_version is added to the configuration, allowing more control over version display or manipulation.
Update README to clarify pre_n handling with distance_to_latest_tag. c027879
Revised the parse expression to exclude pre_n and updated serialize examples to use distance_to_latest_tag instead. Fixes #272
Fixed PACKAGE env variable. 76c31c4
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
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.0
updated-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
Fixed Ruff errors and workflow permissions. 11c1e42
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 to dependency-groups[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 5
updated-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
Fix format arg help text for show command. cf65ec2
[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
Added container labels and version hooks. d4cb8f2
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
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
Fixed test to look for warning logs. 538c420
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.
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.
[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
Fixed missing new version info in some hook environments. 24a9bdc
Fixed missing new version info in some hook environments. 24a9bdc
Introduce the new_version_env function and update existing functions (get_setup_hook_env and get_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.
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
[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
Fix issues with environment test on windows. 04a98d0
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, and post_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.
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
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.
Fixed terminology in tests. 0338da2
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
Refactor version parsing in visualize function. 5f25300
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 to versioning.version_config. 5b90817
Moved version_part.py to versioning/version_config.py and updated all import statements accordingly. Enhanced error handling in VersionConfig by adding raise_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.
Fix JSON serialization. d3f3022
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.
Fixes mypy pre-commit checking. f7d0909
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
[pre-commit.ci] pre-commit autoupdate. 58cc73e
updates: - github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6
Refactor error handling and improve logging in utils. 890b692
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.
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 new run_command utility for improved readability and error handling consistency. Removed unnecessary dependency from .pre-commit-config.yaml to streamline dependencies.
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
Fix KeyError in TOML file handling. f3c328a
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
[pre-commit.ci] pre-commit autoupdate. 536c7b1
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.2
Fixed tag version extraction. 67eea3d
Refactor error handling in SCM and add error handling test. 7ca6356
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.
[pre-commit.ci] pre-commit autoupdate. 60acc2d
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.9 → v0.4.10
Add VersionNotFoundError test in test_bump.py. cb050a8
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.
[pre-commit.ci] pre-commit autoupdate. 0e3a154
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.4.9
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.
Refactor valid_bumps and invalid_bumps to include_bumps and exclude_bumps. 2df57cc
Refactor valid_bumps and invalid_bumps to include_bumps and exclude_bumps. 2df57cc
The configuration parameters valid_bumps and invalid_bumps were renamed to include_bumps and exclude_bumps respectively. 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
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_bumps and invalid_bumps lists 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.
[pre-commit.ci] pre-commit autoupdate. e44f6af
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.8
Update documentation for clarification. 2224808
The changes made update the wording in the documentation to clarify the roles of include_bumps and exclude_bumps in 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
Nothing published for this version
Add extensive documentation for the 'show' subcommand. 91409d8
Add extensive documentation for the 'show' subcommand. 91409d8
This commit adds extensive documentation for the show subcommand in the program's reference. It also includes smaller updates and corrections to other parts of the documentation. An in-depth example usage of show is added both to the dedicated show.md file and in the function's docstring.
[pre-commit.ci] auto fixes from pre-commit.com hooks. 1b57c2b
[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
Fixed a bug in the glob tests. 1041fe9
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
Adds glob_exclude file specification parameter. 420e3bd
User can prune the files resolved via the glob parameter.
Fixes #184
[pre-commit.ci] pre-commit autoupdate. ce02aa7
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2
Fixed test logging setup. 3777f27
Fixed test logging setup. 3777f27
Fixed the indentation problem. ec3cd99
[pre-commit.ci] pre-commit autoupdate. e916f87
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1
Fixed the rendering of numeric version components. c522c75
Fixed the rendering of numeric version components. c522c75
Fixed code block in the README. b4ff9f3
[pre-commit.ci] pre-commit autoupdate. 9b09da8
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.3.7
Fix typos discovered by codespell. d5c33a3
Fix typos discovered by codespell. d5c33a3
Fixed relative references. 2aa1011
Refactored the docs. b63a9e7
[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
Refactored context into its own module. 5a3e05d
Added always_increment attribute for parts. 53ee848
This 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_format attribute for CalVer parts.Fixed packaging of dev releases. 84254e0
Fixed packaging of dev releases. 84254e0
Fixed platform-dependent encoding. f8b4d65
encoding="utf-8" to all writes.Fixed version.yaml workflow. 10b007c
[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/checkout from 3 to 4
Updates actions/setup-python from 4 to 5
Updates codecov/codecov-action from 3 to 4
updated-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
BREAKING CHANGE: You must use bump-my-version bump
Fixed --ignore-missing-version and --ignore-missing-files options. 7635873
Fixed --ignore-missing-version and --ignore-missing-files options. 7635873
The CLI options were defaulting to False when missing. This overrode the configuration.
Fixes #140
Fixed docs and cli help. 8ac1087
Your coding agent can read these notes before it upgrades. Set up the MCP server →