Skip to content

Commit a13c895

Browse files
authored
Delete fix-encoding-pragma hook
1 parent da21b9b commit a13c895

File tree

4 files changed

+1
-323
lines changed

4 files changed

+1
-323
lines changed

.pre-commit-hooks.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@
144144
entry: fix-byte-order-marker
145145
language: python
146146
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]
153147
- id: forbid-new-submodules
154148
name: forbid new submodules
155149
description: prevents addition of new git submodules.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ Trims trailing whitespace.
207207
### Deprecated / replaced hooks
208208

209209
- `check-byte-order-marker`: instead use fix-byte-order-marker
210+
- `fix-encoding-pragma`: instead use [`pyupgrade`](https://github.com/asottile/pyupgrade)
210211

211212
### As a standalone package
212213

pre_commit_hooks/fix_encoding_pragma.py

-156
This file was deleted.

tests/fix_encoding_pragma_test.py

-161
This file was deleted.

0 commit comments

Comments
 (0)