Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Setuptools integration

Upon installation, isort enables asetuptools command that checksPython files declared by your project.

Runningpython setup.py isort on the command line will check the fileslisted in yourpy_modules andpackages. If any warning is found, thecommand will exit with an error code:

$ python setup.py isort

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

setup(name="project",packages=["project"],setup_requires=["isort"])

[8]ページ先頭

©2009-2025 Movatter.jp