File tree 4 files changed +1
-331
lines changed
4 files changed +1
-331
lines changed Original file line number Diff line number Diff line change 144
144
entry : fix-byte-order-marker
145
145
language : python
146
146
types : [text]
147
- - id : fix-encoding-pragma
148
- name : fix python encoding pragma (deprecated)
149
- description : ' adds # -*- coding: utf-8 -*- to the top of python files.'
150
- language : python
151
- entry : fix-encoding-pragma
152
- types : [python]
153
147
- id : forbid-new-submodules
154
148
name : forbid new submodules
155
149
description : prevents addition of new git submodules.
Original file line number Diff line number Diff line change @@ -126,13 +126,6 @@ The following arguments are available:
126
126
#### ` fix-byte-order-marker `
127
127
removes UTF-8 byte order marker
128
128
129
- #### ` fix-encoding-pragma `
130
-
131
- _ Deprecated since py2 is EOL - use [ pyupgrade] ( https://github.com/asottile/pyupgrade ) instead._
132
-
133
- Add ` # -*- coding: utf-8 -*- ` to the top of python files.
134
- - To remove the coding pragma pass ` --remove ` (useful in a python3-only codebase)
135
-
136
129
#### ` forbid-new-submodules `
137
130
Prevent addition of new git submodules.
138
131
@@ -210,6 +203,7 @@ Trims trailing whitespace.
210
203
# ## Deprecated / replaced hooks
211
204
212
205
- `check-byte-order-marker` : instead use fix-byte-order-marker
206
+ - `fix-encoding-pragma` : instead use [`pyupgrade`](https://github.com/asottile/pyupgrade)
213
207
214
208
# ## As a standalone package
215
209
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments