fix(pre-commit): update URL and versions in the pre-commit configuration (#1865)

There was a dead link in the pre-commit-golang URL. Also, Woile/commitizen redirects to commitizen-tools/commitizen, so change that URL as well. Last, update all the versions using pre-commit autoupdate.

This will make it easier for new contributers to use the pre-commit
hooks when contributing.
This commit is contained in:
Joey H 2022-12-27 12:56:28 -06:00 committed by GitHub
parent 8c61bc9b45
commit d3fbfa26ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
default_stages: [commit] default_stages: [commit]
repos: repos:
- repo: git://github.com/dnephin/pre-commit-golang - repo: https://github.com/dnephin/pre-commit-golang
rev: v0.3.5 rev: v0.5.1
hooks: hooks:
- id: go-fmt - id: go-fmt
- id: go-imports - id: go-imports
@ -12,20 +12,20 @@ repos:
- id: go-build - id: go-build
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1 # Use the sha or tag you want to point at rev: v3.0.0-alpha.4 # Use the sha or tag you want to point at
hooks: hooks:
- id: prettier - id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0 # Use the ref you want to point at rev: v4.4.0 # Use the ref you want to point at
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: check-json - id: check-json
- id: check-yaml - id: check-yaml
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/Woile/commitizen - repo: https://github.com/commitizen-tools/commitizen
rev: v2.17.6 rev: v2.38.0
hooks: hooks:
- id: commitizen - id: commitizen
stages: [commit-msg] stages: [commit-msg]