github.com/SUSE/skuba@v1.4.17/.pre-commit-config.yaml (about) 1 # See https://pre-commit.com for more information 2 # See https://pre-commit.com/hooks.html for more hooks 3 repos: 4 - repo: https://github.com/pre-commit/pre-commit-hooks 5 rev: v2.4.0 6 hooks: 7 - id: trailing-whitespace 8 - id: end-of-file-fixer 9 - id: check-symlinks 10 - id: check-merge-conflict 11 - id: check-yaml 12 - id: check-executables-have-shebangs 13 - repo: local 14 hooks: 15 - id: go-fmt 16 name: go fmt 17 entry: ./scripts/go-fmt.sh 18 files: '\.go$' 19 language: script 20 - id: go-vet 21 name: go vet 22 entry: ./scripts/go-vet.sh 23 files: '\.go$' 24 language: script 25 - id: go-imports 26 name: go imports 27 entry: ./scripts/go-imports.sh 28 files: '\.go$' 29 language: script 30 - repo: https://github.com/golangci/golangci-lint 31 rev: v1.21.0 32 hooks: 33 - id: golangci-lint 34 args: [--verbose, --timeout=3m] 35 files: '\.go$' 36 - repo: https://github.com/pre-commit/mirrors-autopep8 37 rev: v1.4.4 38 hooks: 39 - id: autopep8 40 files: '\.py$' 41 - repo: https://github.com/antonbabenko/pre-commit-terraform 42 rev: v1.21.0 43 hooks: 44 - id: terraform_fmt 45 files: '\.tf$'