PyCQA / PyCQA/isort

Replace Imports

Open
#1,534 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Hacktoberfest
Dominant language
Python
Stars
7k
Forks
687
Avg merge
4h 56m
Merged PRs (30d)
2

Description

Currently, isort has functionality to enable adding imports and removing imports. It would be useful to add functionality to replace imports (adding only when removed).

Contributor guide

No contributing guide indexed for this repository

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 tracing isort's existing functionality for adding and removing imports, then identify the relevant entry points and tests. Add coverage for replacing an import by adding the replacement only when the original import is removed, and verify the existing add/remove behavior remains unchanged.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.