Skip to content

Commit 2f6ba1b

Browse files
committed
Remove legacy hooks.yaml and pre-types config
1 parent 78b2443 commit 2f6ba1b

File tree

3 files changed

+0
-310
lines changed

3 files changed

+0
-310
lines changed

.pre-commit-hooks.yaml

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -5,179 +5,119 @@
55
language: python
66
types: [python]
77
args: [-i]
8-
# for backward compatibility
9-
files: ''
10-
minimum_pre_commit_version: 0.15.0
118
- id: check-added-large-files
129
name: Check for added large files
1310
description: Prevent giant files from being committed
1411
entry: check-added-large-files
1512
language: python
16-
# for backward compatibility
17-
files: ''
18-
minimum_pre_commit_version: 0.15.0
1913
- id: check-ast
2014
name: Check python ast
2115
description: Simply check whether the files parse as valid python.
2216
entry: check-ast
2317
language: python
2418
types: [python]
25-
# for backward compatibility
26-
files: ''
27-
minimum_pre_commit_version: 0.15.0
2819
- id: check-byte-order-marker
2920
name: Check for byte-order marker
3021
description: Forbid files which have a UTF-8 byte-order marker
3122
entry: check-byte-order-marker
3223
language: python
3324
types: [python]
34-
# for backward compatibility
35-
files: ''
36-
minimum_pre_commit_version: 0.15.0
3725
- id: check-builtin-literals
3826
name: Check builtin type constructor use
3927
description: Require literal syntax when initializing empty or zero Python builtin types.
4028
entry: check-builtin-literals
4129
language: python
4230
types: [python]
43-
# for backward compatibility
44-
files: ''
45-
minimum_pre_commit_version: 0.15.0
4631
- id: check-case-conflict
4732
name: Check for case conflicts
4833
description: Check for files that would conflict in case-insensitive filesystems
4934
entry: check-case-conflict
5035
language: python
51-
# for backward compatibility
52-
files: ''
53-
minimum_pre_commit_version: 0.15.0
5436
- id: check-docstring-first
5537
name: Check docstring is first
5638
description: Checks a common error of defining a docstring after code.
5739
entry: check-docstring-first
5840
language: python
5941
types: [python]
60-
# for backward compatibility
61-
files: ''
62-
minimum_pre_commit_version: 0.15.0
6342
- id: check-executables-have-shebangs
6443
name: Check that executables have shebangs
6544
description: Ensures that (non-binary) executables have a shebang.
6645
entry: check-executables-have-shebangs
6746
language: python
6847
types: [text, executable]
69-
# for backward compatibility
70-
files: ''
71-
minimum_pre_commit_version: 0.15.0
7248
- id: check-json
7349
name: Check JSON
7450
description: This hook checks json files for parseable syntax.
7551
entry: check-json
7652
language: python
7753
types: [json]
78-
# for backward compatibility
79-
files: ''
80-
minimum_pre_commit_version: 0.15.0
8154
- id: pretty-format-json
8255
name: Pretty format JSON
8356
description: This hook sets a standard for formatting JSON files.
8457
entry: pretty-format-json
8558
language: python
8659
types: [json]
87-
# for backward compatibility
88-
files: ''
89-
minimum_pre_commit_version: 0.15.0
9060
- id: check-merge-conflict
9161
name: Check for merge conflicts
9262
description: Check for files that contain merge conflict strings.
9363
entry: check-merge-conflict
9464
language: python
9565
types: [text]
96-
# for backward compatibility
97-
files: ''
98-
minimum_pre_commit_version: 0.15.0
9966
- id: check-symlinks
10067
name: Check for broken symlinks
10168
description: Checks for symlinks which do not point to anything.
10269
entry: check-symlinks
10370
language: python
10471
types: [symlink]
105-
# for backward compatibility
106-
files: ''
107-
minimum_pre_commit_version: 0.15.0
10872
- id: check-vcs-permalinks
10973
name: Check vcs permalinks
11074
description: Ensures that links to vcs websites are permalinks.
11175
entry: check-vcs-permalinks
11276
language: python
11377
types: [text]
114-
# for backward compatibility
115-
files: ''
116-
minimum_pre_commit_version: 0.15.0
11778
- id: check-xml
11879
name: Check Xml
11980
description: This hook checks xml files for parseable syntax.
12081
entry: check-xml
12182
language: python
12283
types: [xml]
123-
# for backward compatibility
124-
files: ''
125-
minimum_pre_commit_version: 0.15.0
12684
- id: check-yaml
12785
name: Check Yaml
12886
description: This hook checks yaml files for parseable syntax.
12987
entry: check-yaml
13088
language: python
13189
types: [yaml]
132-
# for backward compatibility
133-
files: ''
134-
minimum_pre_commit_version: 0.15.0
13590
- id: debug-statements
13691
name: Debug Statements (Python)
13792
description: Check for debugger imports and py37+ `breakpoint()` calls in python source.
13893
entry: debug-statement-hook
13994
language: python
14095
types: [python]
141-
# for backward compatibility
142-
files: ''
143-
minimum_pre_commit_version: 0.15.0
14496
- id: detect-aws-credentials
14597
name: Detect AWS Credentials
14698
description: Detects *your* aws credentials from the aws cli credentials file
14799
entry: detect-aws-credentials
148100
language: python
149101
types: [text]
150-
# for backward compatibility
151-
files: ''
152-
minimum_pre_commit_version: 0.15.0
153102
- id: detect-private-key
154103
name: Detect Private Key
155104
description: Detects the presence of private keys
156105
entry: detect-private-key
157106
language: python
158107
types: [text]
159-
# for backward compatibility
160-
files: ''
161-
minimum_pre_commit_version: 0.15.0
162108
- id: double-quote-string-fixer
163109
name: Fix double quoted strings
164110
description: This hook replaces double quoted strings with single quoted strings
165111
entry: double-quote-string-fixer
166112
language: python
167113
types: [python]
168-
# for backward compatibility
169-
files: ''
170-
minimum_pre_commit_version: 0.15.0
171114
- id: end-of-file-fixer
172115
name: Fix End of Files
173116
description: Ensures that a file is either empty, or ends with one newline.
174117
entry: end-of-file-fixer
175118
language: python
176119
types: [text]
177120
stages: [commit, push, manual]
178-
# for backward compatibility
179-
files: ''
180-
minimum_pre_commit_version: 0.15.0
181121
- id: file-contents-sorter
182122
name: File Contents Sorter
183123
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,35 +130,23 @@
190130
entry: fix-encoding-pragma
191131
description: 'Add # -*- coding: utf-8 -*- to the top of python files'
192132
types: [python]
193-
# for backward compatibility
194-
files: ''
195-
minimum_pre_commit_version: 0.15.0
196133
- id: flake8
197134
name: Flake8
198135
description: This hook runs flake8.
199136
entry: flake8
200137
language: python
201138
types: [python]
202-
# for backward compatibility
203-
files: ''
204-
minimum_pre_commit_version: 0.15.0
205139
- id: forbid-new-submodules
206140
name: Forbid new submodules
207141
language: python
208142
entry: forbid-new-submodules
209143
description: Prevent addition of new git submodules
210-
# for backward compatibility
211-
files: ''
212-
minimum_pre_commit_version: 0.15.0
213144
- id: mixed-line-ending
214145
name: Mixed line ending
215146
description: Replaces or checks mixed line ending
216147
entry: mixed-line-ending
217148
language: python
218149
types: [text]
219-
# for backward compatibility
220-
files: ''
221-
minimum_pre_commit_version: 0.15.0
222150
- id: name-tests-test
223151
name: Tests should end in _test.py
224152
description: This verifies that test files are named correctly
@@ -231,18 +159,12 @@
231159
language: python
232160
pass_filenames: false
233161
always_run: true
234-
# for backward compatibility
235-
files: ''
236-
minimum_pre_commit_version: 0.15.0
237162
- id: pyflakes
238163
name: Pyflakes (DEPRECATED, use flake8)
239164
description: This hook runs pyflakes. (This is deprecated, use flake8).
240165
entry: pyflakes
241166
language: python
242167
types: [python]
243-
# for backward compatibility
244-
files: ''
245-
minimum_pre_commit_version: 0.15.0
246168
- id: requirements-txt-fixer
247169
name: Fix requirements.txt
248170
description: Sorts entries in requirements.txt
@@ -261,6 +183,3 @@
261183
entry: trailing-whitespace-fixer
262184
language: python
263185
types: [text]
264-
# for backward compatibility
265-
files: ''
266-
minimum_pre_commit_version: 0.15.0

0 commit comments

Comments
 (0)