Skip to content

Setuptools integration

Upon installation, isort enables a setuptools command that checks Python files declared by your project.

Running python 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:

$ python isort

Also, to allow users to be able to use the command without having to install isort themselves, add isort to the setup_requires of your setup() like so: