Skip to content

Commit eb1d765

Browse files
chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.9.1 (#1173)
> [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07. <hr> This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [commitizen-tools/commitizen](https://redirect.github.com/commitizen-tools/commitizen) | repository | minor | `v4.8.2` -> `v4.9.1` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://redirect.github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>commitizen-tools/commitizen (commitizen-tools/commitizen)</summary> ### [`v4.9.1`](https://redirect.github.com/commitizen-tools/commitizen/blob/HEAD/CHANGELOG.md#v491-2025-09-10) [Compare Source](https://redirect.github.com/commitizen-tools/commitizen/compare/v4.9.0...v4.9.1) ##### Fix - **dependency**: move deprecated to project.dependencies ### [`v4.9.0`](https://redirect.github.com/commitizen-tools/commitizen/blob/HEAD/CHANGELOG.md#v490-2025-09-09) [Compare Source](https://redirect.github.com/commitizen-tools/commitizen/compare/v4.8.4...v4.9.0) ##### Feat - **check**: add check against default branch ##### Fix - **changelog**: mark get\_smart\_tag\_range as deprecated - **init**: use pre-push as pre-commit stage - **init**: use pre-push as pre-commit stage - **init**: make welcome message easier to read - **Init**: fix a typo in \_ask\_version\_provider options and remove unnecessary filter, use named tuple for options - **ExitCode**: add from\_str in ExitCode and replace parse\_no\_raise with it - raise NoVersionSpecifiedError if version is None, and adjust call sites of get\_version - **Changelog**: fix \_export\_template variable type - **Bump**: rewrite --get-next NotAllowed error message for consistency ##### Refactor - **changelog**: add get\_next\_tag\_name\_after\_version and test, mark unused for get\_smart\_tag\_range - **changelog**: simplify logic for get\_oldest\_and\_newest\_rev - **changelog**: shorten generate\_tree\_from\_commits - **Init**: remove the variable values\_to\_add and the update\_config function for readability - **Init**: remove unnecessary methods from ProjectInfo and refactor \_ask\_tag - **Init**: fix unbounded variable in \_ask\_tag\_format - **init**: remote extra words - **process\_commit\_message**: better type and early return - **Init**: extract \_get\_config\_data for readability - **changelog**: shorten condition expression and early return - **Changelog**: remove unnecessary intermediate variables for better readability - **bump**: use a loop to shorten a series of similar NotAllowed exceptions - **Init**: use ternary operator - **TagRules**: extract tag\_formats property and simplify list comprehension - **git**: remove redundant if branch - **ScmProvider**: replace sorted with max - **ExpectedExit**: make the constructor more compact - **ParseArgs**: simplify **call** function body ### [`v4.8.4`](https://redirect.github.com/commitizen-tools/commitizen/blob/HEAD/CHANGELOG.md#v484-2025-09-05) [Compare Source](https://redirect.github.com/commitizen-tools/commitizen/compare/v4.8.3...v4.8.4) ##### Fix - members in workspace, use exclude - cargo workspaces ##### Refactor - reduce code indentation ### [`v4.8.3`](https://redirect.github.com/commitizen-tools/commitizen/blob/HEAD/CHANGELOG.md#v483-2025-06-09) [Compare Source](https://redirect.github.com/commitizen-tools/commitizen/compare/v4.8.2...v4.8.3) ##### Fix - **cli**: update description for deprecate warning - **commit**: emit deprecated warning of cz commit -s - **Check**: make parameters backward compatible - **BaseConfig**: mypy error - **deprecated**: mark deprecate in v5 - **defaults**: add non-capitalized default constants back and deprecated warning ##### Refactor - **jira**: refactor message - **conventional\_commits**: use TypedDict for answers - **conventional\_commits**: make schema\_pattern more readable - do not guess if changelog format is provided - **check**: compile once and rename variable - **questions**: type questions with TypedDict - **bump**: simplify nested if - **git**: retype get\_commits parameter to make it more friendly to call sites - **git**: simplify tag logic - **bump**: eliminate similar patterns in code - **bump**: use any to replace 'or' chain - remove unnecessary bool() and remove Any type from TypedDict get - **bump**: improve readability and still bypass mypy check - **commands**: remove unused args, type version command args - **commit**: type commit args - **check**: type CheckArgs arguments - **check**: remove unused argument - **changelog**: type untyped arguments - **bump**: TypedDict for bump argument - make methods protected, better type - **conventional\_commits**: remove unnecessary checks - fix mypy output and better type - **BaseCommitizen**: remove unused process\_commit - remove `TypeError` handling since `Python >=3.9` is required - add comment clarifying `no_raise` parsing to `list[int]` - **cli.py**: add type hints - **mypy**: remove `unused-ignore` - **changelog**: better typing, yield - **cli**: early return and improve test coverage - **git**: extract \_create\_commit\_cmd\_string - misc cleanup - **bump**: clean up - **bump**: add type for out, replace function with re escape - **BaseConfig**: use setter - **changelog**: minor cleanup - **git**: refactor get\_tag\_names - **EOLType**: add eol enum back and reorganize methods - **git**: code cleanup and better test coverage - **commit**: simplify call - **version\_scheme**: cleanup - improve readability and fix typos ##### Perf - **bump**: avoid unnecessary list construction and rename variable to avoid confusion - **tags**: use set </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/bazel-contrib/bazel-lib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuMTMxLjkiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcHMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent fbb491f commit eb1d765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: buildifier-lint
1515
# Enforce that commit messages allow for later changelog generation
1616
- repo: https://github.com/commitizen-tools/commitizen
17-
rev: v4.8.2
17+
rev: v4.9.1
1818
hooks:
1919
# Requires that commitizen is already installed
2020
- id: commitizen

0 commit comments

Comments
 (0)