-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
60 lines (52 loc) · 1.5 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
# See http://pre-commit.com for more information
# See http://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.3
hooks:
- id: autopep8
- repo: https://github.com/ansible/ansible-lint.git
rev: v4.3.0a3
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
args:
- "--force-color -x 106,204,701,301,305,401,303"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-byte-order-marker
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
hooks:
- id: isort
args:
- --filter-files
# - repo: local
# hooks:
# - id: ansible-lint
# name: Ansible-lint
# description: This hook runs ansible-lint.
# entry: ansible-lint --force-color -x 204,701,301,305,401,303
# files: ./*.yml
# types: [file, yaml]
# language: python
# pass_filenames: true
# always_run: true