Check python import order.
Project description
CLI that check the ordering of imports. ordering follow a below rules.
Module order: __future__ , standard libraries, site-packages, local.
CONSTANT_NAMES must be the first.
ClassNames must be the second.
Rest must be in alphabetical order.
Requirements
Python 2.7.x or Python 3.3+
How to install
Via pip
$ pip install -U import-order
Or clone source code from repository and install it.
$ git clone git://github.com/spoqa/import-order.git
$ cd import_order
$ python setup.py install
How to use
Use import-order to check your python codes. If you want to check your local package named foo in root directory of package.
$ import-order foo
For more information, look around help command.
$ import-order --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
import-order-0.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for import_order-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8d82daabe5ee0f0ddad524c027d1e0762d76d90fa01bf4e7f07b338679bfae |
|
MD5 | 85992df1477a7fd897bd5a6cc46e7dc2 |
|
BLAKE2b-256 | a2f1117772bfb5dcba83d535020cc262f29d4e76610b02b51b924d1df4b684da |