-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (51 loc) · 1.35 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
51 lines (51 loc) · 1.35 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
---
ci:
skip: [ansible-lint, shellcheck]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: pretty-format-json
name: Format JSON files
description: Formats JSON files using `jq`
args: [--autofix]
exclude: '^terminal/.*\.json$'
- id: trailing-whitespace
- repo: https://github.com/ansible/ansible-lint
rev: v26.4.0
hooks:
- id: ansible-lint
name: Lint Ansible files
description: Runs ansible-lint to check Ansible playbooks and roles
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
name: Lint GitHub Actions workflow files
description: Runs actionlint to lint GitHub Actions workflow files
language: golang
types: ["yaml"]
files: ^\.github/workflows/
entry: actionlint
minimum_pre_commit_version: 3.0.0
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
name: Lint YAML files
description: Runs yamllint to check YAML files
types: ["yaml"]
- repo: local
hooks:
- id: shellcheck
name: Lint shell scripts
description: Runs shellcheck to check shell scripts
entry: shellcheck
language: system
types: [shell]
exclude: '^zsh/\.p10k\.zsh$'