Skip to main content

Check and fix your module and package imports in python files

Project description

ImportLint

Check and fix your module and package imports in python files

Use

Check

importlint check test.py

fix

importlint fix test.py

Install

pip install importlint

TODO

Make command line interface for

  • Audit file (Done)
  • Correct file in place (Done)

Make features: a = can audit, c = can correct

  • [c] Sort imports alphabetically
  • [a] Check for use of * in imports
  • [] Check for unused imports
  • [] Check for no imports for used module
  • [] Consolidate multiple similar imports into one line

Package for pypi

  • Make a setup.py
  • Publish package!

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

importlint-0.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

importlint-0.2-py3-none-any.whl (3.8 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