|
5 | 5 | language: python |
6 | 6 | types: [python] |
7 | 7 | args: [-i] |
8 | | - # for backward compatibility |
9 | | - files: '' |
10 | | - minimum_pre_commit_version: 0.15.0 |
11 | 8 | - id: check-added-large-files |
12 | 9 | name: Check for added large files |
13 | 10 | description: Prevent giant files from being committed |
14 | 11 | entry: check-added-large-files |
15 | 12 | language: python |
16 | | - # for backward compatibility |
17 | | - files: '' |
18 | | - minimum_pre_commit_version: 0.15.0 |
19 | 13 | - id: check-ast |
20 | 14 | name: Check python ast |
21 | 15 | description: Simply check whether the files parse as valid python. |
22 | 16 | entry: check-ast |
23 | 17 | language: python |
24 | 18 | types: [python] |
25 | | - # for backward compatibility |
26 | | - files: '' |
27 | | - minimum_pre_commit_version: 0.15.0 |
28 | 19 | - id: check-byte-order-marker |
29 | 20 | name: Check for byte-order marker |
30 | 21 | description: Forbid files which have a UTF-8 byte-order marker |
31 | 22 | entry: check-byte-order-marker |
32 | 23 | language: python |
33 | 24 | types: [python] |
34 | | - # for backward compatibility |
35 | | - files: '' |
36 | | - minimum_pre_commit_version: 0.15.0 |
37 | 25 | - id: check-builtin-literals |
38 | 26 | name: Check builtin type constructor use |
39 | 27 | description: Require literal syntax when initializing empty or zero Python builtin types. |
40 | 28 | entry: check-builtin-literals |
41 | 29 | language: python |
42 | 30 | types: [python] |
43 | | - # for backward compatibility |
44 | | - files: '' |
45 | | - minimum_pre_commit_version: 0.15.0 |
46 | 31 | - id: check-case-conflict |
47 | 32 | name: Check for case conflicts |
48 | 33 | description: Check for files that would conflict in case-insensitive filesystems |
49 | 34 | entry: check-case-conflict |
50 | 35 | language: python |
51 | | - # for backward compatibility |
52 | | - files: '' |
53 | | - minimum_pre_commit_version: 0.15.0 |
54 | 36 | - id: check-docstring-first |
55 | 37 | name: Check docstring is first |
56 | 38 | description: Checks a common error of defining a docstring after code. |
57 | 39 | entry: check-docstring-first |
58 | 40 | language: python |
59 | 41 | types: [python] |
60 | | - # for backward compatibility |
61 | | - files: '' |
62 | | - minimum_pre_commit_version: 0.15.0 |
63 | 42 | - id: check-executables-have-shebangs |
64 | 43 | name: Check that executables have shebangs |
65 | 44 | description: Ensures that (non-binary) executables have a shebang. |
66 | 45 | entry: check-executables-have-shebangs |
67 | 46 | language: python |
68 | 47 | types: [text, executable] |
69 | | - # for backward compatibility |
70 | | - files: '' |
71 | | - minimum_pre_commit_version: 0.15.0 |
72 | 48 | - id: check-json |
73 | 49 | name: Check JSON |
74 | 50 | description: This hook checks json files for parseable syntax. |
75 | 51 | entry: check-json |
76 | 52 | language: python |
77 | 53 | types: [json] |
78 | | - # for backward compatibility |
79 | | - files: '' |
80 | | - minimum_pre_commit_version: 0.15.0 |
81 | 54 | - id: pretty-format-json |
82 | 55 | name: Pretty format JSON |
83 | 56 | description: This hook sets a standard for formatting JSON files. |
84 | 57 | entry: pretty-format-json |
85 | 58 | language: python |
86 | 59 | types: [json] |
87 | | - # for backward compatibility |
88 | | - files: '' |
89 | | - minimum_pre_commit_version: 0.15.0 |
90 | 60 | - id: check-merge-conflict |
91 | 61 | name: Check for merge conflicts |
92 | 62 | description: Check for files that contain merge conflict strings. |
93 | 63 | entry: check-merge-conflict |
94 | 64 | language: python |
95 | 65 | types: [text] |
96 | | - # for backward compatibility |
97 | | - files: '' |
98 | | - minimum_pre_commit_version: 0.15.0 |
99 | 66 | - id: check-symlinks |
100 | 67 | name: Check for broken symlinks |
101 | 68 | description: Checks for symlinks which do not point to anything. |
102 | 69 | entry: check-symlinks |
103 | 70 | language: python |
104 | 71 | types: [symlink] |
105 | | - # for backward compatibility |
106 | | - files: '' |
107 | | - minimum_pre_commit_version: 0.15.0 |
108 | 72 | - id: check-vcs-permalinks |
109 | 73 | name: Check vcs permalinks |
110 | 74 | description: Ensures that links to vcs websites are permalinks. |
111 | 75 | entry: check-vcs-permalinks |
112 | 76 | language: python |
113 | 77 | types: [text] |
114 | | - # for backward compatibility |
115 | | - files: '' |
116 | | - minimum_pre_commit_version: 0.15.0 |
117 | 78 | - id: check-xml |
118 | 79 | name: Check Xml |
119 | 80 | description: This hook checks xml files for parseable syntax. |
120 | 81 | entry: check-xml |
121 | 82 | language: python |
122 | 83 | types: [xml] |
123 | | - # for backward compatibility |
124 | | - files: '' |
125 | | - minimum_pre_commit_version: 0.15.0 |
126 | 84 | - id: check-yaml |
127 | 85 | name: Check Yaml |
128 | 86 | description: This hook checks yaml files for parseable syntax. |
129 | 87 | entry: check-yaml |
130 | 88 | language: python |
131 | 89 | types: [yaml] |
132 | | - # for backward compatibility |
133 | | - files: '' |
134 | | - minimum_pre_commit_version: 0.15.0 |
135 | 90 | - id: debug-statements |
136 | 91 | name: Debug Statements (Python) |
137 | 92 | description: Check for debugger imports and py37+ `breakpoint()` calls in python source. |
138 | 93 | entry: debug-statement-hook |
139 | 94 | language: python |
140 | 95 | types: [python] |
141 | | - # for backward compatibility |
142 | | - files: '' |
143 | | - minimum_pre_commit_version: 0.15.0 |
144 | 96 | - id: detect-aws-credentials |
145 | 97 | name: Detect AWS Credentials |
146 | 98 | description: Detects *your* aws credentials from the aws cli credentials file |
147 | 99 | entry: detect-aws-credentials |
148 | 100 | language: python |
149 | 101 | types: [text] |
150 | | - # for backward compatibility |
151 | | - files: '' |
152 | | - minimum_pre_commit_version: 0.15.0 |
153 | 102 | - id: detect-private-key |
154 | 103 | name: Detect Private Key |
155 | 104 | description: Detects the presence of private keys |
156 | 105 | entry: detect-private-key |
157 | 106 | language: python |
158 | 107 | types: [text] |
159 | | - # for backward compatibility |
160 | | - files: '' |
161 | | - minimum_pre_commit_version: 0.15.0 |
162 | 108 | - id: double-quote-string-fixer |
163 | 109 | name: Fix double quoted strings |
164 | 110 | description: This hook replaces double quoted strings with single quoted strings |
165 | 111 | entry: double-quote-string-fixer |
166 | 112 | language: python |
167 | 113 | types: [python] |
168 | | - # for backward compatibility |
169 | | - files: '' |
170 | | - minimum_pre_commit_version: 0.15.0 |
171 | 114 | - id: end-of-file-fixer |
172 | 115 | name: Fix End of Files |
173 | 116 | description: Ensures that a file is either empty, or ends with one newline. |
174 | 117 | entry: end-of-file-fixer |
175 | 118 | language: python |
176 | 119 | types: [text] |
177 | 120 | stages: [commit, push, manual] |
178 | | - # for backward compatibility |
179 | | - files: '' |
180 | | - minimum_pre_commit_version: 0.15.0 |
181 | 121 | - id: file-contents-sorter |
182 | 122 | name: File Contents Sorter |
183 | 123 | description: Sort the lines in specified files (defaults to alphabetical). You must provide list of target files as input in your .pre-commit-config.yaml file. |
|
190 | 130 | entry: fix-encoding-pragma |
191 | 131 | description: 'Add # -*- coding: utf-8 -*- to the top of python files' |
192 | 132 | types: [python] |
193 | | - # for backward compatibility |
194 | | - files: '' |
195 | | - minimum_pre_commit_version: 0.15.0 |
196 | 133 | - id: flake8 |
197 | 134 | name: Flake8 |
198 | 135 | description: This hook runs flake8. |
199 | 136 | entry: flake8 |
200 | 137 | language: python |
201 | 138 | types: [python] |
202 | | - # for backward compatibility |
203 | | - files: '' |
204 | | - minimum_pre_commit_version: 0.15.0 |
205 | 139 | - id: forbid-new-submodules |
206 | 140 | name: Forbid new submodules |
207 | 141 | language: python |
208 | 142 | entry: forbid-new-submodules |
209 | 143 | description: Prevent addition of new git submodules |
210 | | - # for backward compatibility |
211 | | - files: '' |
212 | | - minimum_pre_commit_version: 0.15.0 |
213 | 144 | - id: mixed-line-ending |
214 | 145 | name: Mixed line ending |
215 | 146 | description: Replaces or checks mixed line ending |
216 | 147 | entry: mixed-line-ending |
217 | 148 | language: python |
218 | 149 | types: [text] |
219 | | - # for backward compatibility |
220 | | - files: '' |
221 | | - minimum_pre_commit_version: 0.15.0 |
222 | 150 | - id: name-tests-test |
223 | 151 | name: Tests should end in _test.py |
224 | 152 | description: This verifies that test files are named correctly |
|
231 | 159 | language: python |
232 | 160 | pass_filenames: false |
233 | 161 | always_run: true |
234 | | - # for backward compatibility |
235 | | - files: '' |
236 | | - minimum_pre_commit_version: 0.15.0 |
237 | 162 | - id: pyflakes |
238 | 163 | name: Pyflakes (DEPRECATED, use flake8) |
239 | 164 | description: This hook runs pyflakes. (This is deprecated, use flake8). |
240 | 165 | entry: pyflakes |
241 | 166 | language: python |
242 | 167 | types: [python] |
243 | | - # for backward compatibility |
244 | | - files: '' |
245 | | - minimum_pre_commit_version: 0.15.0 |
246 | 168 | - id: requirements-txt-fixer |
247 | 169 | name: Fix requirements.txt |
248 | 170 | description: Sorts entries in requirements.txt |
|
261 | 183 | entry: trailing-whitespace-fixer |
262 | 184 | language: python |
263 | 185 | types: [text] |
264 | | - # for backward compatibility |
265 | | - files: '' |
266 | | - minimum_pre_commit_version: 0.15.0 |
0 commit comments