- repo: git://github.com/pre-commit/pre-commit-hooks
  sha: 'v0.5.1'
  hooks:
    - id: check-merge-conflict
    - id: end-of-file-fixer
      files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$'
      exclude: '^vendor/'
    - id: trailing-whitespace
      files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$'
      args: ['--no-markdown-linebreak-ext']
      exclude: '^vendor/'
    - id: check-yaml
      exclude: '^vendor/'
    - id: check-json
      exclude: '^vendor/'

- repo: git://github.com/dnephin/pre-commit-golang
  sha: HEAD
  hooks:
    - id: go-fmt
      exclude: '^vendor/'
      args: ['-s']
    - id: go-lint
      exclude: '^(vendor/|schema/bindata\.go)'
    - id: go-vet
      exclude: '^vendor/'
