-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.pre-commit-config.yaml
45 lines (40 loc) · 1.01 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
---
repos:
- repo: https://github.com/ansible/ansible-lint
rev: v24.12.2
hooks:
- id: ansible-lint
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: local
hooks:
- id: shfmt
name: shfmt
additional_dependencies: [mvdan.cc/sh/v3/cmd/[email protected]]
entry: shfmt
language: golang
exclude: roles/oneagent/tests/resources/installers/Dynatrace-OneAgent-Linux.sh
args:
- "-s"
- "-w"
types: [shell]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.10.0.1"
hooks:
- id: shellcheck
exclude: gradlew
args:
- "--external-sources"
- repo: https://github.com/adrienverge/yamllint
rev: "v1.35.0"
hooks:
- id: yamllint
files: \.(yaml|yml)