feat: integrate pre-commit hooks (#1559)

* 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>
This commit is contained in:
AhmedGrati
2023-02-10 10:57:07 -05:00
committed by GitHub
parent d82f5b954f
commit 20dfb84f38
+20
View File
@@ -0,0 +1,20 @@
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"]