jbweston / miniver

Like Versioneer, but smaller
Creative Commons Zero v1.0 Universal
53 stars 10 forks source link

`# -*- coding: utf-8 -*-` #50

Open DimitriPapadopoulos opened 1 year ago

DimitriPapadopoulos commented 1 year ago

I believe the encoding declaration # -*- coding: utf-8 -*- is not needed any more as far as Python 3 is concerned. Do you rely on other tools (like your IDE or text editor) to make use of that information? https://github.com/jbweston/miniver/blob/9624074bba080cde5d87ae664e74d1250100d333/setup.py#L1 https://github.com/jbweston/miniver/blob/9624074bba080cde5d87ae664e74d1250100d333/miniver/app.py#L69 https://github.com/jbweston/miniver/blob/9624074bba080cde5d87ae664e74d1250100d333/miniver/_static_version.py#L1 https://github.com/jbweston/miniver/blob/9624074bba080cde5d87ae664e74d1250100d333/miniver/_version.py#L1

In any case it is not used consistently in all files, I would recommend removing it from all files or adding it to all files.