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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

importlint-0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file importlint-0.2.tar.gz.

File metadata

  • Download URL: importlint-0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for importlint-0.2.tar.gz
Algorithm Hash digest
SHA256 6051104148656e4d453669d44b5cad52cc9bd0e0248fac19b8baff626a8072e6
MD5 8f224125d4f2db331e3f5064b0fc40ab
BLAKE2b-256 691af5dfa4168cc68e714de051d5624c376a8e1f3d0362ff7201d372dcfb9bb3

See more details on using hashes here.

File details

Details for the file importlint-0.2-py3-none-any.whl.

File metadata

  • Download URL: importlint-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for importlint-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55608b39ba86f00316ab48f0e209fa6f49142d654e060a1c08d8813fdc964a11
MD5 171b6ee8c62c18c9791cf464f6d772d3
BLAKE2b-256 3b68f303fe109ca585bbf32f61256b403e2884e6382248e7392cb212aa67f354

See more details on using hashes here.

Supported by

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