github.com/buildtool/build-tools@v0.2.29-0.20240322150259-6a1d0a553c23/.pre-commit-config.yaml (about)

     1  # MIT License
     2  #
     3  # Copyright (c) 2021 buildtool
     4  #
     5  # Permission is hereby granted, free of charge, to any person obtaining a copy
     6  # of this software and associated documentation files (the "Software"), to deal
     7  # in the Software without restriction, including without limitation the rights
     8  # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     9  # copies of the Software, and to permit persons to whom the Software is
    10  # furnished to do so, subject to the following conditions:
    11  #
    12  # The above copyright notice and this permission notice shall be included in all
    13  # copies or substantial portions of the Software.
    14  #
    15  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    16  # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    17  # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    18  # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    19  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    20  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    21  # SOFTWARE.
    22  
    23  # See https://pre-commit.com for more information
    24  # See https://pre-commit.com/hooks.html for more hooks
    25  repos:
    26    - repo: https://github.com/pre-commit/pre-commit-hooks
    27      rev: v4.4.0
    28      hooks:
    29        - id: trailing-whitespace
    30        - id: end-of-file-fixer
    31        - id: check-yaml
    32          args:
    33            - --allow-multiple-documents
    34        - id: check-added-large-files
    35    - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
    36      rev: v9.4.0
    37      hooks:
    38        - id: commitlint
    39          stages: [commit-msg]
    40          additional_dependencies: ['@commitlint/config-conventional']
    41          args: ['--config', './.github/commitlint.config.js']
    42    - repo: https://github.com/dnephin/pre-commit-golang
    43      rev: v0.5.1
    44      hooks:
    45        - id: go-mod-tidy
    46        - id: go-imports
    47    - repo: https://github.com/lietu/go-pre-commit
    48      rev: v0.0.1
    49      hooks:
    50        - id: go-test
    51    #      - id: gofumpt
    52    - repo: https://github.com/golangci/golangci-lint
    53      rev: v1.50.1
    54      hooks:
    55        - id: golangci-lint