Add deprecation messaging for `fix-encoding-pragma` · pre-commit/pre-commit-hooks@cef973f · GitHub
Skip to content

Commit cef973f

Browse files
mxrasottile
authored andcommitted
Add deprecation messaging for fix-encoding-pragma
1 parent c8715b7 commit cef973f

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion

README.md

Lines changed: 3 additions & 0 deletions
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

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)