-
Notifications
You must be signed in to change notification settings - Fork 43
/
.pre-commit-config.yaml
129 lines (129 loc) · 3.56 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.4.0 # ok python3.6 on Ubuntu 18.04 AND python3.7 on Ubuntu 19.04 AND python3.8 on Ubuntu 20.04
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: ["--maxkb=123"]
exclude: >
(?x)^(
roles/windows/files/vs2008.ini|
)$
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
exclude: >
(?x)^(
clean.bat|
build.bat|
mvnw.cmd|
.mvn/
)$
- id: check-json
exclude: ^.vscode/
- id: check-xml
- id: check-yaml
exclude: >
(?x)^(
k8s/.*|
)$
- id: check-symlinks
- id: check-merge-conflict
- id: debug-statements
exclude: ^.cache/
- id: detect-private-key
exclude: >
(?x)^(
.ssh/id_rsa|
)$
- id: double-quote-string-fixer
- id: name-tests-test
exclude: >
(?x)^(
.*/molecule/default/tests/test_default.py|
)$
# - id: no-commit-to-branch
# args: [--branch, develop, --branch, master, --branch, release/*]
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: file-contents-sorter
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.7
hooks:
- id: autopep8
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2 # Use the sha / tag you want to point at
hooks:
- id: flake8
args: [--max-line-length=120]
- repo: https://github.com/pre-commit/pre-commit.git
rev: v2.12.1
hooks:
- id: validate_manifest
- repo: https://github.com/asottile/reorder_python_imports.git
rev: v2.5.0
hooks:
- id: reorder-python-imports
exclude: ^.cache/
# language_version: python3
# language_version: python2.7
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/willthames/ansible-lint.git
rev: v4.3.7
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
exclude: >
(?x)^(
.travis.yml|
docker/|
requirements.yml|
playbooks/group_vars/all/vault.yml|
)$
- repo: https://github.com/doublify/pre-commit-hindent.git
rev: b3680b6ebf9f7cf29b19307f246adef66756feef
hooks:
- id: hindent
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint
#entry: pre_commit_hooks/shell-lint.sh -x
args: [-x]
exclude: >
(?x)^(
mvnw|
hooks|
)$
- repo: https://github.com/asottile/pyupgrade
rev: v2.15.0
hooks:
- id: pyupgrade
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.7
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
hooks:
- id: bandit
- repo: https://github.com/IamTheFij/ansible-pre-commit
rev: v0.1.2
hooks:
- id: encryption-check
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.1
hooks:
- id: htmlhint
args: [--config, .htmlhintrc]
- id: markdown-toc
args: [--maxdepth, "3", -i]
# - id: dockerfile_lint
# args: [--json, --verbose, --dockerfile]