-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.pre-commit-config.yaml
69 lines (69 loc) · 1.92 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
# yamllint disable rule:line-length
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: examples/
- id: check-added-large-files
- id: pretty-format-json
args:
- --autofix
- id: detect-aws-credentials
- id: detect-private-key
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-tabs
exclude_types: [ python, javascript, dtd, markdown, makefile, xml ]
exclude: binary|\.bin$|rego|\.rego$|go|\.go$
- repo: https://github.com/jameswoolfenden/pre-commit-shell
rev: 0.0.2
hooks:
- id: shell-lint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint
exclude: src/testdata|testdata
- repo: https://github.com/jameswoolfenden/pre-commit
rev: v0.1.50
hooks:
- id: terraform-fmt
language_version: python3.11
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.25
hooks:
- id: gofmt
- id: goimports
exclude: src/parse/terraform-provider-*
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
- id: go-test
args: [ "./..." ]
- id: go-mod-tidy
- id: go-generate
- repo: https://github.com/jameswoolfenden/ghat
rev: v0.1.13
hooks:
- id: ghat-go
name: ghat
description: upgrade action dependencies
language: golang
entry: ghat swot -d . --continue-on-error true --stable 14
always_run: true
pass_filenames: false
types: [ yaml ]
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: validate-toml
- id: no-go-testing