commitizen-tools / commitizen

Create committing rules for projects :rocket: auto bump versions :arrow_up: and auto changelog generation :open_file_folder:
https://commitizen-tools.github.io/commitizen/
MIT License
2.55k stars 266 forks source link

build(pre-commit): migrate pre-commit conifg #1284

Closed Lee-W closed 2 weeks ago

Lee-W commented 2 weeks ago

Description

When running pre-commit run --all-files, the following error was encountered.

[WARNING] hook id `commitizen-branch` uses deprecated stage names (push) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
[WARNING] hook id `linter and test` uses deprecated stage names (push) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
[WARNING] top-level `default_stages` uses deprecated stage names (commit, push) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.

This commit only only migrates the pre-commit config to the latest version.

Checklist

Expected behavior

Run pre-commit run --all-files without encountering warning

Steps to Test This Pull Request

Run pre-commit run --all-files

Additional context

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.57%. Comparing base (120d514) to head (7116af5). Report is 481 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1284 +/- ## ========================================== + Coverage 97.33% 97.57% +0.24% ========================================== Files 42 55 +13 Lines 2104 2602 +498 ========================================== + Hits 2048 2539 +491 - Misses 56 63 +7 ``` | [Flag](https://app.codecov.io/gh/commitizen-tools/commitizen/pull/1284/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/commitizen-tools/commitizen/pull/1284/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `97.57% <ø> (+0.24%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.