FILE / ScuroNeko/Laniakea
.pre-commit-config.yaml
Исходный файл и его история в репозитории.
42 lines
905 B
YAML
42 lines
905 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: mixed-line-ending
|
|
args: ["--fix=lf"]
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: gofmt
|
|
name: gofmt
|
|
entry: gofmt -w
|
|
language: system
|
|
types: [go]
|
|
|
|
- id: go-vet
|
|
name: go vet
|
|
entry: go vet ./...
|
|
language: system
|
|
pass_filenames: false
|
|
types: [go]
|
|
|
|
- id: golangci-lint
|
|
name: golangci-lint
|
|
entry: golangci-lint run
|
|
language: system
|
|
pass_filenames: false
|
|
types: [go]
|
|
|
|
- id: go-test
|
|
name: go test
|
|
entry: go test ./...
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-push]
|
|
types: [go]
|