pipreqs icon indicating copy to clipboard operation
pipreqs copied to clipboard

Support for files that specify their encoding

Open kmulka-bloomberg opened this issue 1 year ago • 0 comments

I ran into the same issue many had here: https://github.com/bndr/pipreqs/issues/214

Python source code does have a standard way of specifying the encoding of a file. I suggest pipreqs uses this if available to detect the encoding of the file.

PEP-263: Defining Python Source Code Encodings https://peps.python.org/pep-0263/

kmulka-bloomberg avatar Aug 05 '24 21:08 kmulka-bloomberg