Skip to content

Commit 393134a

Browse files
committed
Add pre-commit configuration
1 parent c14fd65 commit 393134a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.5.0
4+
hooks:
5+
- id: no-commit-to-branch
6+
- id: check-merge-conflict
7+
- id: trailing-whitespace
8+
9+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
10+
rev: v1.3.2
11+
hooks:
12+
- id: pretty-format-yaml
13+
args: [--autofix]
14+
15+
- repo: https://github.com/ansible/ansible-lint.git
16+
rev: v4.3.0a1
17+
hooks:
18+
- id: ansible-lint
19+
files: \.(yaml|yml)$

0 commit comments

Comments
 (0)