-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
75 lines (66 loc) · 1.92 KB
/
.pre-commit-hooks.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
70
71
72
73
74
75
---
- id: shell-validate
name: Lint shell scripts
description: Run /bin/sh -en against shell scripts.
language: script
entry: ./hooks/shell-validate
types: [shell]
- id: ansible-syntax-check
name: Syntax check Ansible playbooks
description: Check Ansible playbooks for syntax errors.
language: python
entry: ansible-playbook
files: playbook\.yml
types: [yaml]
args: ['--inventory=localhost,', '--syntax-check']
- id: docker-compose
name: docker-compose config
description: Validate the Docker Compose file using docker-compose config
language: python
entry: docker-compose-validate
files: docker-compose
types: [yaml]
- id: terraform-fmt
name: Format Terraform files
description: Format Terraform files using terraform fmt
language: python
types: [terraform]
entry: terraform-fmt
- id: terraform-validate
name: Validate Terraform modules
description: Validate Terraform modules using terraform validate
language: python
types: [terraform]
entry: terraform-validate
- id: packer-fix
name: Fix Packer templates
description: Fix known backwards incompatibilities in Packer templates
language: python
entry: packer-fix
types_or: [json]
- id: packer-fmt
name: Format Packer templates
description: Rewrites all Packer configuration files to a canonical format
language: python
entry: packer-fmt
types: [hcl]
- id: packer-validate
name: Validate Packer templates
description: Checks that the Packer template is valid
language: python
entry: packer-validate
types_or: [json, hcl]
- id: poetry-check
name: poetry check
description: Validate pyproject.toml files using Poetry
language: python
entry: poetry-check
types: [toml]
files: pyproject
- id: branch-merge-conflicts
name: branch merge conflicts
description: Checks for merge conflicts with a specific branch.
language: script
entry: ./hooks/branch-merge-conflicts
pass_filenames: false
always_run: true