Skip to main content

Detect duplicate imports

Project description

dupimport

Find things you imported twice in your python code, when you probably only needed to import once.

Installation

pip install dupimport

Usage

Use on a file: dupimport path/to/file.py

or use on a folder:

  • dupimport .
  • dupimport path/to/folder/

Caveats

Imports in an if statement may be okay

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dupimport-1.0.0.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

dupimport-1.0.0-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page