-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 973 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 973 Bytes
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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
args:
- --remove
- id: check-json
- id: check-yaml
exclude: (^ansible/collections)
- id: detect-private-key
- id: pretty-format-json
args:
- --autofix
- repo: local
hooks:
- id: ansible-lint
name: Ansible lint
language: system
entry: >-
bash -c 'cd ansible && ansible-lint --offline
playbooks/paas/main.yml
playbooks/saas/main.yml
playbooks/saas/operate.yml
playbooks/saas/image-forkable.yml'
files: ^ansible/
pass_filenames: false
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.1
hooks:
- id: terraform_fmt
args:
- terraform