Skip to content

Instantly share code, notes, and snippets.

@iamgoangle
Created September 5, 2022 07:24
Show Gist options
  • Save iamgoangle/a99159abfe3aeb59605e5fd518620885 to your computer and use it in GitHub Desktop.
Save iamgoangle/a99159abfe3aeb59605e5fd518620885 to your computer and use it in GitHub Desktop.
.pre-commit-config.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-yaml
- 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: no-go-testing
- id: golangci-lint
- id: go-unit-tests
# - id: validate-toml
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v8.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment