Releases: callowayproject/bump-my-version
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
0.24.3
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
0.24.2
Fixes
0.24.1
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
0.24.0
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.
0.23.0
Fixes
-
Refactor valid_bumps and invalid_bumps to include_bumps and exclude_bumps. 2df57cc
The configuration parameters
valid_bumps
andinvalid_bumps
were renamed toinclude_bumps
andexclude_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
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_bumps
andinvalid_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.
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_bumps
andexclude_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 [email protected]
0.22.0
New
-
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 ofshow
is added both to the dedicatedshow.md
file and in the function's docstring.
Updates
- Renamed version workflow to release. 68f9eee
0.21.1
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
- Update README.md. cad7096
0.21.0
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_exclude
file specification parameter. 420e3bdUser can prune the files resolved via the
glob
parameter.Fixes #184
Other
-
[pre-commit.ci] pre-commit autoupdate. ce02aa7
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2