Skip to content

Commit 3285353

Browse files
authored
Add more messaging
1 parent c5b624e commit 3285353

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ The following arguments are available:
127127
removes UTF-8 byte order marker
128128

129129
#### `fix-encoding-pragma`
130+
131+
_Deprecated since py2 is EOL - use [pyupgrade](https://github.com/asottile/pyupgrade) instead._
132+
130133
Add `# -*- coding: utf-8 -*-` to the top of python files.
131134
- To remove the coding pragma pass `--remove` (useful in a python3-only codebase)
132135

pre_commit_hooks/fix_encoding_pragma.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def _normalize_pragma(pragma: str) -> bytes:
110110
def main(argv: Sequence[str] | None = None) -> int:
111111
print(
112112
'warning: this hook is deprecated and will be removed in a future '
113-
'release because py2 is EOL',
113+
'release because py2 is EOL. instead, use '
114+
'https://github.com/asottile/pyupgrade',
114115
file=sys.stderr,
115116
)
116117

0 commit comments

Comments
 (0)