Skip to content

Commit b2bb193

Browse files
committed
Delete fix-encoding-pragma hook
1 parent b73acb1 commit b2bb193

File tree

4 files changed

+1
-331
lines changed

4 files changed

+1
-331
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-7
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ The following arguments are available:
126126
#### `fix-byte-order-marker`
127127
removes UTF-8 byte order marker
128128

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-
136129
#### `forbid-new-submodules`
137130
Prevent addition of new git submodules.
138131

@@ -210,6 +203,7 @@ Trims trailing whitespace.
210203
### Deprecated / replaced hooks
211204

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

214208
### As a standalone package
215209

pre_commit_hooks/fix_encoding_pragma.py

-157
This file was deleted.

tests/fix_encoding_pragma_test.py

-161
This file was deleted.

0 commit comments

Comments
 (0)