forked from LaconicNetwork/kompose
* feat: integrate pre-commit hooks * Revert "feat: integrate pre-commit hooks" This reverts commit 4d1ce961678c3483c669d946b4c0d5515bb4142d. * add pre-commit-config file Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> * remove no-go-testing from pre-commit-hooks Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com> --------- Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
21 lines
583 B
YAML
21 lines
583 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-added-large-files
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
rev: v0.5.0
|
|
hooks:
|
|
- id: go-fmt
|
|
- id: go-imports
|
|
- id: golangci-lint
|
|
- id: go-unit-tests
|
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
|
rev: v8.0.0
|
|
hooks:
|
|
- id: commitlint
|
|
stages: [commit-msg]
|
|
additional_dependencies: ["@commitlint/config-conventional"]
|