pre-commit: add configuration

This commit is contained in:
Sumner Evans 2022-01-27 09:50:37 -07:00
parent 125ccd3dbb
commit b3e15cc843
No known key found for this signature in database
GPG key ID: 8904527AB50022FD
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
.idea .idea
*.yaml *.yaml
!.pre-commit-config.yaml
!example-config.yaml !example-config.yaml
*.session *.session

14
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
exclude_types: [markdown]
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-beta.5
hooks:
- id: go-imports-repo