Add pre-commit hooks
This commit is contained in:
parent
292392873e
commit
2123308227
15
.pre-commit-config.yaml
Normal file
15
.pre-commit-config.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.1.0
|
||||||
|
hooks:
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- repo: git://github.com/dnephin/pre-commit-golang
|
||||||
|
rev: v0.4.0
|
||||||
|
hooks:
|
||||||
|
- id: go-fmt
|
||||||
|
- id: go-imports
|
||||||
|
- id: golangci-lint
|
4
Makefile
4
Makefile
@ -22,3 +22,7 @@ install: $(BIN)
|
|||||||
.PHONY: set-default
|
.PHONY: set-default
|
||||||
set-default:
|
set-default:
|
||||||
xdg-settings set default-web-browser browserRuler.desktop
|
xdg-settings set default-web-browser browserRuler.desktop
|
||||||
|
|
||||||
|
.PHONY: install-hooks
|
||||||
|
install-hooks:
|
||||||
|
pre-commit install --install-hooks
|
||||||
|
Loading…
Reference in New Issue
Block a user