File tree Expand file tree Collapse file tree 7 files changed +7
-372
lines changed Expand file tree Collapse file tree 7 files changed +7
-372
lines changed Original file line number Diff line number Diff line change 12
12
language : python
13
13
types : [python]
14
14
- id : check-byte-order-marker
15
- name : ' check BOM - deprecated: use fix- byte-order-marker'
16
- description : forbids files which have a utf-8 byte-order marker.
17
- entry : check-byte-order-marker
15
+ name : check- byte-order-marker (removed)
16
+ description : (removed) use fix- byte-order- marker instead .
17
+ entry : pre-commit-hooks-removed check-byte-order-marker fix-byte-order-marker https://github.com/pre-commit/pre-commit-hooks
18
18
language : python
19
19
types : [text]
20
20
- id : check-builtin-literals
155
155
language : python
156
156
types : [text]
157
157
- id : fix-encoding-pragma
158
- name : fix python encoding pragma (deprecated)
159
- description : ' adds # -*- coding: utf-8 -*- to the top of python files.'
158
+ name : fix python encoding pragma (removed)
159
+ description : (removed) use pyupgrade instead.
160
+ entry : pre-commit-hooks-removed fix-encoding-pragma pyupgrade https://github.com/asottile/pyupgrade
160
161
language : python
161
- entry : fix-encoding-pragma
162
162
types : [python]
163
163
- id : forbid-new-submodules
164
164
name : forbid new submodules
Original file line number Diff line number Diff line change @@ -129,13 +129,6 @@ The following arguments are available:
129
129
#### ` fix-byte-order-marker `
130
130
removes UTF-8 byte order marker
131
131
132
- #### ` fix-encoding-pragma `
133
-
134
- _ Deprecated since py2 is EOL - use [ pyupgrade] ( https://github.com/asottile/pyupgrade ) instead._
135
-
136
- Add ` # -*- coding: utf-8 -*- ` to the top of python files.
137
- - To remove the coding pragma pass ` --remove ` (useful in a python3-only codebase)
138
-
139
132
#### ` forbid-new-submodules `
140
133
Prevent addition of new git submodules.
141
134
@@ -213,6 +206,7 @@ Trims trailing whitespace.
213
206
# ## Deprecated / replaced hooks
214
207
215
208
- `check-byte-order-marker` : instead use fix-byte-order-marker
209
+ - `fix-encoding-pragma` : instead use [`pyupgrade`](https://github.com/asottile/pyupgrade)
216
210
217
211
# ## As a standalone package
218
212
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ console_scripts =
32
32
check-added-large-files = pre_commit_hooks.check_added_large_files:main
33
33
check-ast = pre_commit_hooks.check_ast:main
34
34
check-builtin-literals = pre_commit_hooks.check_builtin_literals:main
35
- check-byte-order-marker = pre_commit_hooks.check_byte_order_marker:main
36
35
check-case-conflict = pre_commit_hooks.check_case_conflict:main
37
36
check-docstring-first = pre_commit_hooks.check_docstring_first:main
38
37
check-executables-have-shebangs = pre_commit_hooks.check_executables_have_shebangs:main
@@ -52,7 +51,6 @@ console_scripts =
52
51
end-of-file-fixer = pre_commit_hooks.end_of_file_fixer:main
53
52
file-contents-sorter = pre_commit_hooks.file_contents_sorter:main
54
53
fix-byte-order-marker = pre_commit_hooks.fix_byte_order_marker:main
55
- fix-encoding-pragma = pre_commit_hooks.fix_encoding_pragma:main
56
54
forbid-new-submodules = pre_commit_hooks.forbid_new_submodules:main
57
55
mixed-line-ending = pre_commit_hooks.mixed_line_ending:main
58
56
name-tests-test = pre_commit_hooks.tests_should_end_in_test:main
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments