Reorder import statements in Python files
Project description
Python Fix Imports is a Python module that can automatically reorganize the import statements of your Python script.
Please read the online documenation for more information.
Example
Fix imports allows you to automatically turn:
from any_module import d, f
from any_module import (b,
e)
from any_module import a, \
c,
into:
from any_module import a
from any_module import b
from any_module import c
from any_module import d
from any_module import e
from any_module import f
Fiximport installation
$ pip install fiximports
Development environment
$ virtualenv env
$ source env/bin/activate
$ pip install --upgrade -e .
$ pip install -r test-requirements.txt
$ python setup.py --version
Executing tests
$ python setup.py test
Update the dependencies for tests
$ pip-compile test-requirements.in
Generating the documentation
$ python setup.py docs
Release and upload to Pypi
Upload your work to Github
Create a new release on Github
Fetch changes on local:
$ git fetch --all $ git pull --rebase
Build wheels:
$ rm -rfv dist/* $ python setup.py bdist_wheel $ python setup.py bdist_wheel --universal $ twine upload dist/*
Upload distributions:
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for fiximports-0.1.1.dev1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520eb1289469e4a66304a4b515b6fe48855b5674ed0029c2e1956dc11143b55a |
|
MD5 | 6f2a015501dd9b1945b7fddab91ac6c2 |
|
BLAKE2b-256 | 6a4704d2036d16b54eb5b6a6491ba087023f2ae6f662da24381011aba726c023 |