|
3 | 3 | description: "Runs autopep8 over python source. If you configure additional arguments you'll want to at least include -i." |
4 | 4 | entry: autopep8-wrapper |
5 | 5 | language: python |
6 | | - files: \.py$ |
| 6 | + types: [python] |
7 | 7 | args: [-i] |
| 8 | + # for backward compatibility |
| 9 | + files: '' |
| 10 | + minimum_pre_commit_version: 0.15.0 |
8 | 11 | - id: check-added-large-files |
9 | 12 | name: Check for added large files |
10 | 13 | description: Prevent giant files from being committed |
11 | 14 | entry: check-added-large-files |
12 | 15 | language: python |
13 | | - # Match all files |
| 16 | + # for backward compatibility |
14 | 17 | files: '' |
| 18 | + minimum_pre_commit_version: 0.15.0 |
15 | 19 | - id: check-ast |
16 | 20 | name: Check python ast |
17 | 21 | description: Simply check whether the files parse as valid python. |
18 | 22 | entry: check-ast |
19 | 23 | language: python |
20 | | - files: '\.py$' |
| 24 | + types: [python] |
| 25 | + # for backward compatibility |
| 26 | + files: '' |
| 27 | + minimum_pre_commit_version: 0.15.0 |
21 | 28 | - id: check-byte-order-marker |
22 | 29 | name: Check for byte-order marker |
23 | 30 | description: Forbid files which have a UTF-8 byte-order marker |
24 | 31 | entry: check-byte-order-marker |
25 | 32 | language: python |
26 | | - files: '\.py$' |
| 33 | + types: [python] |
| 34 | + # for backward compatibility |
| 35 | + files: '' |
| 36 | + minimum_pre_commit_version: 0.15.0 |
27 | 37 | - id: check-case-conflict |
28 | 38 | name: Check for case conflicts |
29 | 39 | description: Check for files that would conflict in case-insensitive filesystems |
30 | 40 | entry: check-case-conflict |
31 | 41 | language: python |
32 | | - # Match all files |
| 42 | + # for backward compatibility |
33 | 43 | files: '' |
| 44 | + minimum_pre_commit_version: 0.15.0 |
34 | 45 | - id: check-docstring-first |
35 | 46 | name: Check docstring is first |
36 | 47 | description: Checks a common error of defining a docstring after code. |
37 | 48 | entry: check-docstring-first |
38 | 49 | language: python |
39 | | - files: \.py$ |
| 50 | + types: [python] |
| 51 | + # for backward compatibility |
| 52 | + files: '' |
| 53 | + minimum_pre_commit_version: 0.15.0 |
40 | 54 | - id: check-json |
41 | 55 | name: Check JSON |
42 | 56 | description: This hook checks json files for parseable syntax. |
43 | 57 | entry: check-json |
44 | 58 | language: python |
45 | | - files: \.json$ |
| 59 | + types: [json] |
| 60 | + # for backward compatibility |
| 61 | + files: '' |
| 62 | + minimum_pre_commit_version: 0.15.0 |
46 | 63 | - id: pretty-format-json |
47 | 64 | name: Pretty format JSON |
48 | 65 | description: This hook sets a standard for formatting JSON files. |
49 | 66 | entry: pretty-format-json |
50 | 67 | language: python |
51 | | - files: \.json$ |
| 68 | + types: [json] |
| 69 | + # for backward compatibility |
| 70 | + files: '' |
| 71 | + minimum_pre_commit_version: 0.15.0 |
52 | 72 | - id: check-merge-conflict |
53 | 73 | name: Check for merge conflicts |
54 | 74 | description: Check for files that contain merge conflict strings. |
55 | 75 | entry: check-merge-conflict |
56 | 76 | language: python |
57 | | - # Match all files |
| 77 | + types: [text] |
| 78 | + # for backward compatibility |
58 | 79 | files: '' |
| 80 | + minimum_pre_commit_version: 0.15.0 |
59 | 81 | - id: check-symlinks |
60 | 82 | name: Check for broken symlinks |
61 | 83 | description: Checks for symlinks which do not point to anything. |
62 | 84 | entry: check-symlinks |
63 | 85 | language: python |
64 | | - # Match all files |
65 | | - files: '' |
66 | 86 | types: [symlink] |
| 87 | + # for backward compatibility |
| 88 | + files: '' |
| 89 | + minimum_pre_commit_version: 0.15.0 |
67 | 90 | - id: check-xml |
68 | 91 | name: Check Xml |
69 | 92 | description: This hook checks xml files for parseable syntax. |
70 | 93 | entry: check-xml |
71 | 94 | language: python |
72 | | - files: \.xml$ |
| 95 | + types: [xml] |
| 96 | + # for backward compatibility |
| 97 | + files: '' |
| 98 | + minimum_pre_commit_version: 0.15.0 |
73 | 99 | - id: check-yaml |
74 | 100 | name: Check Yaml |
75 | 101 | description: This hook checks yaml files for parseable syntax. |
76 | 102 | entry: check-yaml |
77 | 103 | language: python |
78 | | - files: \.(yaml|yml|eyaml)$ |
| 104 | + types: [yaml] |
| 105 | + # for backward compatibility |
| 106 | + files: '' |
| 107 | + minimum_pre_commit_version: 0.15.0 |
79 | 108 | - id: debug-statements |
80 | 109 | name: Debug Statements (Python) |
81 | 110 | description: This hook checks that debug statements (pdb, ipdb, pudb) are not imported on commit. |
82 | 111 | entry: debug-statement-hook |
83 | 112 | language: python |
84 | | - files: \.py$ |
| 113 | + types: [python] |
| 114 | + # for backward compatibility |
| 115 | + files: '' |
| 116 | + minimum_pre_commit_version: 0.15.0 |
85 | 117 | - id: detect-aws-credentials |
86 | 118 | name: Detect AWS Credentials |
87 | 119 | description: Detects *your* aws credentials from the aws cli credentials file |
88 | 120 | entry: detect-aws-credentials |
89 | 121 | language: python |
| 122 | + types: [text] |
| 123 | + # for backward compatibility |
90 | 124 | files: '' |
| 125 | + minimum_pre_commit_version: 0.15.0 |
91 | 126 | - id: detect-private-key |
92 | 127 | name: Detect Private Key |
93 | 128 | description: Detects the presence of private keys |
94 | 129 | entry: detect-private-key |
95 | 130 | language: python |
| 131 | + types: [text] |
| 132 | + # for backward compatibility |
96 | 133 | files: '' |
| 134 | + minimum_pre_commit_version: 0.15.0 |
97 | 135 | - id: double-quote-string-fixer |
98 | 136 | name: Fix double quoted strings |
99 | 137 | description: This hook replaces double quoted strings with single quoted strings |
100 | 138 | entry: double-quote-string-fixer |
101 | 139 | language: python |
102 | | - files: \.py$ |
| 140 | + types: [python] |
| 141 | + # for backward compatibility |
| 142 | + files: '' |
| 143 | + minimum_pre_commit_version: 0.15.0 |
103 | 144 | - id: end-of-file-fixer |
104 | 145 | name: Fix End of Files |
105 | 146 | description: Ensures that a file is either empty, or ends with one newline. |
106 | 147 | entry: end-of-file-fixer |
107 | 148 | language: python |
108 | | - files: \.(asciidoc|adoc|coffee|cpp|css|c|ejs|erb|groovy|h|haml|hh|hpp|hxx|html|in|j2|jade|json|js|less|markdown|md|ml|mli|pp|py|rb|rs|R|scala|scss|sh|slim|tex|tmpl|ts|txt|yaml|yml)$ |
| 149 | + types: [text] |
| 150 | + # for backward compatibility |
| 151 | + files: '' |
| 152 | + minimum_pre_commit_version: 0.15.0 |
109 | 153 | - id: file-contents-sorter |
110 | 154 | name: File Contents Sorter |
111 | 155 | 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. |
|
117 | 161 | language: python |
118 | 162 | entry: fix-encoding-pragma |
119 | 163 | description: 'Add # -*- coding: utf-8 -*- to the top of python files' |
120 | | - files: \.py$ |
| 164 | + types: [python] |
| 165 | + # for backward compatibility |
| 166 | + files: '' |
| 167 | + minimum_pre_commit_version: 0.15.0 |
121 | 168 | - id: flake8 |
122 | 169 | name: Flake8 |
123 | 170 | description: This hook runs flake8. |
124 | 171 | entry: flake8 |
125 | 172 | language: python |
126 | | - files: \.py$ |
| 173 | + types: [python] |
| 174 | + # for backward compatibility |
| 175 | + files: '' |
| 176 | + minimum_pre_commit_version: 0.15.0 |
127 | 177 | - id: forbid-new-submodules |
128 | 178 | name: Forbid new submodules |
129 | 179 | language: python |
130 | 180 | entry: forbid-new-submodules |
131 | 181 | description: Prevent addition of new git submodules |
| 182 | + # for backward compatibility |
132 | 183 | files: '' |
| 184 | + minimum_pre_commit_version: 0.15.0 |
133 | 185 | - id: name-tests-test |
134 | 186 | name: Tests should end in _test.py |
135 | 187 | description: This verifies that test files are named correctly |
|
140 | 192 | name: "Don't commit to branch" |
141 | 193 | entry: no-commit-to-branch |
142 | 194 | language: python |
143 | | - files: .* |
144 | 195 | always_run: true |
| 196 | + # for backward compatibility |
| 197 | + files: '' |
| 198 | + minimum_pre_commit_version: 0.15.0 |
145 | 199 | - id: pyflakes |
146 | 200 | name: Pyflakes (DEPRECATED, use flake8) |
147 | 201 | description: This hook runs pyflakes. (This is deprecated, use flake8). |
148 | 202 | entry: pyflakes |
149 | 203 | language: python |
150 | | - files: \.py$ |
| 204 | + types: [python] |
| 205 | + # for backward compatibility |
| 206 | + files: '' |
| 207 | + minimum_pre_commit_version: 0.15.0 |
151 | 208 | - id: requirements-txt-fixer |
152 | 209 | name: Fix requirements.txt |
153 | 210 | description: Sorts entries in requirements.txt |
|
165 | 222 | description: This hook trims trailing whitespace. |
166 | 223 | entry: trailing-whitespace-fixer |
167 | 224 | language: python |
168 | | - files: \.(asciidoc|adoc|coffee|cpp|css|c|ejs|erb|groovy|h|haml|hh|hpp|hxx|html|in|j2|jade|json|js|less|markdown|md|ml|mli|pp|py|rb|rs|R|scala|scss|sh|slim|tex|tmpl|ts|txt|yaml|yml)$ |
| 225 | + types: [text] |
| 226 | + # for backward compatibility |
| 227 | + files: '' |
| 228 | + minimum_pre_commit_version: 0.15.0 |
0 commit comments