Add deprecation messaging for fix-encoding-pragma

This commit is contained in:
Max R 2024-04-02 11:11:58 -04:00 committed by Anthony Sottile
parent c8715b78af
commit cef973f323
3 changed files with 12 additions and 1 deletions

View file

@ -127,6 +127,9 @@ The following arguments are available:
removes UTF-8 byte order marker
#### `fix-encoding-pragma`
_Deprecated since py2 is EOL - use [pyupgrade](https://github.com/asottile/pyupgrade) instead._
Add `# -*- coding: utf-8 -*-` to the top of python files.
- To remove the coding pragma pass `--remove` (useful in a python3-only codebase)