2021-03-11 08:36:42 +00:00
|
|
|
default_stages: [commit]
|
|
|
|
|
2020-05-04 07:24:32 +00:00
|
|
|
repos:
|
2022-12-27 18:56:28 +00:00
|
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
|
|
rev: v0.5.1
|
2020-05-04 07:24:32 +00:00
|
|
|
hooks:
|
|
|
|
- id: go-fmt
|
|
|
|
- id: golangci-lint
|
|
|
|
- id: go-unit-tests
|
|
|
|
- id: go-build
|
2020-07-10 22:48:30 +00:00
|
|
|
|
2021-03-02 07:23:26 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2024-02-19 10:29:47 +00:00
|
|
|
rev: v4.0.0-alpha.8 # Use the sha or tag you want to point at
|
2020-07-10 22:48:30 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-02-19 10:29:47 +00:00
|
|
|
rev: v4.5.0 # Use the ref you want to point at
|
2020-07-10 22:48:30 +00:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-json
|
|
|
|
- id: check-yaml
|
2020-07-24 21:45:56 +00:00
|
|
|
- id: check-added-large-files
|
|
|
|
|
2022-12-27 18:56:28 +00:00
|
|
|
- repo: https://github.com/commitizen-tools/commitizen
|
2024-02-19 10:29:47 +00:00
|
|
|
rev: v3.15.0
|
2020-07-24 21:45:56 +00:00
|
|
|
hooks:
|
|
|
|
- id: commitizen
|
|
|
|
stages: [commit-msg]
|