A Python utility / library to sort Python imports.

Edit Package python-isort

isort your python imports for you so you don’t have to.

isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections. It provides a command line utility, Python library and plugins for various editors to quickly sort all your imports. It currently cleanly supports Python 2.6 - 3.5 using pies to achieve this without ugly hacks and/or py2to3.

Refresh
Refresh
Source Files
Filename Size Changed
_multibuild 0000000051 51 Bytes
isort-5.7.0-gh.tar.gz 0000705652 689 KB
python-isort.changes 0000033602 32.8 KB
python-isort.spec 0000004808 4.7 KB
Revision 22 (latest revision is 45)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 859773 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 22)
- Update to Version 5.7.0
  * Fixed #1612: In rare circumstances an extra comma is added
    after import and before comment.
  * Fixed #1593: isort encounters bug in Python 3.6.0.
  * Implemented #1596: Provide ways for extension formatting and
    file paths to be specified when using streaming input from CLI.
  * Implemented #1583: Ability to output and diff within a single
    API call to isort.file.
  * Implemented #1562, #1592 & #1593: Better more useful fatal
    error messages.
  * Implemented #1575: Support for automatically fixing mixed
    indentation of import sections.
  * Implemented #1582: Added a CLI option for skipping symlinks.
  * Implemented #1603: Support for disabling float_to_top from the
    command line.
  * Implemented #1604: Allow toggling section comments on and off
    for indented import sections.
Comments 0
openSUSE Build Service is sponsored by