ni / ni/python-styleguide

unused imports are (sometimes) unflagged

Open
#306 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
21
Forks
20
Avg merge
22h 9m
Merged PRs (30d)
3

Description

Minimum reproduction:

import foo.bar
import foo.baz

print(foo.baz)

foo.bar should get an F401, however, due to pyflakes: #137 Missing import warnings when importing fully-qualified modules
, they are going unflagged.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the minimum Python reproduction through the repository's linting tool and compare its behavior with pyflakes issue #137. The work is done when the unused foo.bar import receives an F401 while the used foo.baz import does not.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.