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!
Release files for importlint 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| importlint-0.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| importlint-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / importlint-0.2.tar.gz
| Download URL | importlint-0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6051104148656e4d453669d44b5cad52cc9bd0e0248fac19b8baff626a8072e6
|
|
BLAKE2b-256 checksum How to use checksums |
691af5dfa4168cc68e714de051d5624c376a8e1f3d0362ff7201d372dcfb9bb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / importlint-0.2-py3-none-any.whl
| Download URL | importlint-0.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55608b39ba86f00316ab48f0e209fa6f49142d654e060a1c08d8813fdc964a11
|
|
BLAKE2b-256 checksum How to use checksums |
3b68f303fe109ca585bbf32f61256b403e2884e6382248e7392cb212aa67f354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|