github.com/giantswarm/apiextensions/v6@v6.6.0/.pre-commit-config.yaml (about)

     1  minimum_pre_commit_version: '2.17'
     2  repos:
     3    # shell scripts
     4    - repo: https://github.com/detailyang/pre-commit-shell
     5      rev: 1.0.5
     6      hooks:
     7        - id: shell-lint
     8          args: [ --format=json ]
     9  
    10    - repo: https://github.com/pre-commit/pre-commit-hooks
    11      rev: v4.3.0
    12      hooks:
    13        - id: check-added-large-files
    14        # check for unresolved merge conflicts
    15        - id: check-merge-conflict
    16        - id: check-shebang-scripts-are-executable
    17        - id: detect-private-key
    18        - id: end-of-file-fixer
    19        - id: mixed-line-ending
    20        - id: trailing-whitespace
    21  
    22    - repo: https://github.com/dnephin/pre-commit-golang
    23      rev: v0.5.0
    24      hooks:
    25        - id: go-fmt
    26        - id: go-mod-tidy
    27        - id: golangci-lint
    28          # timeout is needed for CI
    29          args: [ -E, gosec, -E, goconst, -E, govet, --timeout, 300s ]
    30        - id: go-imports
    31          args: [ -local, github.com/giantswarm/apiextensions ]