bndr / bndr/pipreqs

Support for files that specify their encoding

Open
#461 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

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/

Contributor guide

Open the contributing guide

Research direction

Start by reviewing pipreqs' source-file reading path and the referenced PEP-263 encoding rules, then compare the behavior described in issue #214. Done means files declaring a supported encoding can be processed without the reported decoding failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.