-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
76 lines (73 loc) · 2.13 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
76 lines (73 loc) · 2.13 KB
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
70
71
72
73
74
75
76
---
ci:
# This section is specific to pre-commit.ci, telling it to create a pull request
# to update the linter version tag every month.
autoupdate_schedule: weekly
fail_fast: false
exclude: |
(?x)^(
docs/_assets/.*
# | .*\.sops\.toml
)$
repos:
- repo: https://github.com/pre-commit/sync-pre-commit-deps
rev: v0.0.3
hooks:
- id: sync-pre-commit-deps
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
hooks:
- args:
- --config-file
- .github/linters/.yamllint.yaml
id: yamllint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: check-added-large-files
args: [--maxkb=2048]
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-symlinks
- id: detect-private-key
- repo: https://github.com/sirosen/texthooks
rev: "0.7.1"
hooks:
- id: fix-smartquotes
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.30
hooks:
- id: terraform-fmt
- id: terraform-validate
- id: tflint
- repo: https://github.com/ansible/ansible-lint
rev: v25.8.1 # Use the desired version of ansible-lint
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
verbose: false
args:
- --config=.github/linters/.ansible-lint
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
name: shellcheck
types: [shell] # scripts with a shebang or *.sh
args:
- --severity=style # tweak if you want: error|warning|info|style
exclude: |
(^|/)(\.venv|venv|node_modules|dist|build|\.direnv|\.git)/
# Hadolint for Dockerfiles
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint
name: hadolint
files: ^(Dockerfile|.*[._-]Dockerfile|\.devcontainer/.*Dockerfile)$
args:
- --config-file=.github/linters/.hadolint.yaml