/imps

Sort your imports

Primary LanguagePythonApache License 2.0Apache-2.0

isort


Build Status

Python 2.7, 3.5, 3.6

To Install:

pip install imps

or

python setup.py install

Why?

It sorts your imports and is designed to work with this flake8-import-order plugin It differs from Isort as it is more opinionated and does not require config as it works out what to do by reading your setup.cfg

Usage:

imps <file_name or path>

imps <file_name or path> - s style

where style is smarkets / crypto / google

To Run Tests:

pytest

Note if you run tests in Pycharm: Specify test as type: py.test

Is it ready:

Mostly,

To Run Tox locally:

Tests: tox -e tests Flake8: tox -e flake8