|
| 1 | +# .pre-commit-config.yaml |
| 2 | +repos: |
| 3 | + - repo: local |
| 4 | + hooks: |
| 5 | + - id: forbidden-files |
| 6 | + name: forbidden files |
| 7 | + entry: |
| 8 | + found Copier update rejection files; review and remove them before |
| 9 | + merging. |
| 10 | + language: fail |
| 11 | + files: "\\.rej$" |
| 12 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 13 | + rev: v4.5.0 |
| 14 | + hooks: |
| 15 | + - id: trailing-whitespace |
| 16 | + - id: check-case-conflict |
| 17 | + - id: check-executables-have-shebangs |
| 18 | + - id: check-json |
| 19 | + - id: check-merge-conflict |
| 20 | + args: [--assume-in-merge] |
| 21 | + - id: check-shebang-scripts-are-executable |
| 22 | + - id: check-yaml |
| 23 | + args: |
| 24 | + - --allow-multiple-documents |
| 25 | + - id: end-of-file-fixer |
| 26 | + - id: mixed-line-ending |
| 27 | + args: |
| 28 | + - --fix=auto |
| 29 | + - repo: https://github.com/antonbabenko/pre-commit-terraform |
| 30 | + rev: v1.99.0 |
| 31 | + hooks: |
| 32 | + - id: terraform_fmt |
| 33 | + - id: terraform_validate |
| 34 | + - id: terraform_docs |
| 35 | + args: |
| 36 | + - --hook-config=--path-to-file=README.md |
| 37 | + - --hook-config=--add-to-existing-file=true |
| 38 | + - --hook-config=--create-file-if-not-exist=true |
| 39 | + - --args=--sort=false |
| 40 | + - repo: https://github.com/golangci/golangci-lint |
| 41 | + rev: v2.6.2 |
| 42 | + hooks: |
| 43 | + - id: golangci-lint |
| 44 | + name: golangci-lint |
| 45 | + description: Fast linters runner for Go. |
| 46 | + entry: golangci-lint run --fix |
| 47 | + types: [go] |
| 48 | + language: golang |
| 49 | + pass_filenames: false |
| 50 | + - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook |
| 51 | + rev: v9.22.0 |
| 52 | + hooks: |
| 53 | + - id: commitlint |
| 54 | + stages: [commit-msg] |
| 55 | + additional_dependencies: ["@commitlint/config-conventional"] |
| 56 | + - repo: https://github.com/Yelp/detect-secrets |
| 57 | + rev: v1.5.0 |
| 58 | + hooks: |
| 59 | + - id: detect-secrets |
| 60 | + args: ["--baseline", ".secrets.baseline"] |
| 61 | + exclude: package.lock.json |
0 commit comments