Setuptools Integration - isort (original) (raw)
Upon installation, isort enables a setuptools
command that checks Python files declared by your project.
Running python setup.py isort
on the command line will check the files listed in your py_modules
and packages
. If any warning is found, the command will exit with an error code:
Also, to allow users to be able to use the command without having to install isort themselves, add isort to the setup_requires of yoursetup()
like so:
`setup( name="project", packages=["project"],
setup_requires=[
"isort"
]
) `