@@ -10,45 +10,6 @@ repos:
10
10
entry: found forbidden files; remove them
11
11
language: fail
12
12
files: "\\.rej$"
13
- - repo: https://github.com/pre-commit/pre-commit-hooks
14
- rev: v3.2.0
15
- hooks:
16
- {% - if biggest_kbs %}
17
- - id: check-added-large-files
18
- args:
19
- - --maxkb={{ biggest_kbs }}
20
- {% - endif %}
21
- - id: check-case-conflict
22
- - id: check-executables-have-shebangs
23
- - id: check-json
24
- - id: check-merge-conflict
25
- - id: check-symlinks
26
- - id: check-toml
27
- - id: check-xml
28
- - id: check-yaml
29
- - id: detect-private-key
30
- - id: end-of-file-fixer
31
- - id: mixed-line-ending
32
- args:
33
- - --fix=lf
34
- {% - if protected_branches %}
35
- - id: no-commit-to-branch
36
- args:
37
- {% - for branch in protected_branches %}
38
- - --branch={{ branch }}
39
- {% - endfor %}
40
- {% - endif %}
41
- - id: trailing-whitespace
42
- {% - if python %}
43
- - id: check-ast
44
- - id: check-builtin-literals
45
- - id: check-docstring-first
46
- - id: debug-statements
47
- - id: fix-encoding-pragma
48
- args:
49
- - --remove
50
- - id: requirements-txt-fixer
51
- {% - endif %}
52
13
{#- Prettier is considered general because it reformats Markdown, YAML and XML
53
14
(with the activated plugin), which are too common as to ask the user,
54
15
although it's true that it will also format JS, HTML, CSS and others #}
@@ -123,3 +84,42 @@ repos:
123
84
hooks:
124
85
- id: ansible-lint
125
86
{%- endif %}
87
+ - repo: https: //github.com /pre-commit /pre-commit-hooks
88
+ rev: v3.2.0
89
+ hooks:
90
+ {%- if biggest_kbs %}
91
+ - id: check-added-large-files
92
+ args:
93
+ - --maxkb ={{ biggest_kbs }}
94
+ {%- endif %}
95
+ - id: check-case-conflict
96
+ - id: check-executables-have-shebangs
97
+ - id: check-json
98
+ - id: check-merge-conflict
99
+ - id: check-symlinks
100
+ - id: check-toml
101
+ - id: check-xml
102
+ - id: check-yaml
103
+ - id: detect-private-key
104
+ - id: end-of-file-fixer
105
+ - id: mixed-line-ending
106
+ args:
107
+ - --fix =lf
108
+ {%- if protected_branches %}
109
+ - id: no-commit-to-branch
110
+ args:
111
+ {%- for branch in protected_branches %}
112
+ - --branch ={{ branch }}
113
+ {%- endfor %}
114
+ {%- endif %}
115
+ - id: trailing-whitespace
116
+ {%- if python %}
117
+ - id: check-ast
118
+ - id: check-builtin-literals
119
+ - id: check-docstring-first
120
+ - id: debug-statements
121
+ - id: fix-encoding-pragma
122
+ args:
123
+ - --remove
124
+ - id: requirements-txt-fixer
125
+ {%- endif %}
0 commit comments