A Python utility / library to sort Python imports

Edit Package python-isort
https://pycqa.github.io/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 and by type. It provides a command line
utility, Python library and plugins for various editors to quickly sort all your
imports. It requires Python 3.6+ to run but supports formatting Python 2 code
too.

Refresh
Refresh
Source Files
Filename Size Changed
4.2.15.tar.gz 0000301941 295 KB
patch-shebang.patch 0000000285 285 Bytes
python-isort.changes 0000003282 3.21 KB
python-isort.spec 0000002214 2.16 KB
Revision 4 (latest revision is 120)
Jan Matejek's avatar Jan Matejek (matejcik) accepted request 505500 from Sebastian Wagner's avatar Sebastian Wagner (sebix) (revision 4)
- update description
- install LICENSE as %license if possible
- update to 4.2.15
 * Fixed certain one line imports not being successfully wrapped
- update to 4.2.14
 * Fixed #559 & #565: Added missing standard library imports
- update to 4.2.13
 * Fixed #553: Check only and --diff now work together again
- update to 4.2.12
 * Fixed a problem with the wheel distribution
- update to 4.2.11
 * Fixed #546: Can't select y/n/c after latest update
 * Fixed #545: Incorrectly moves future imports above encoding comments
- update to 4.2.9
 * Fixed #428: Check only modifies sorting
 * Fixed #540: Not correctly identifying stdlib modules
- update to 4.2.8
 * Added --virtual-env switch command line option
 * Added --enforce-whitespace option to go along with --check-only for more exact checks (issue #423)
 * Fixed imports with a tailing '' and no space in-between getting removed (issue #425)
 * Fixed issue #299: long lines occasionally not wrapped
 * Fixed issue #432: No longer add import inside class when class starts at top of file after encoding comment
 * Fixed issue #440: Added missing --use-parentheses option to command line tool and documentation
 * Fixed issue #496: import* imports now get successfully identified and reformatted instead of deleted
 * Fixed issue #491: Non ending parentheses withing single line comments no longer cause formatting issues
 * Fixed issue #471: Imports that wrap the maximum line length and contain comments on the last line are no longer rendered incorrectly
 * Fixed issue #436: Force sort within section no longer rearranges comments
 * Fixed issue #473: Force_to_top and force_sort_within_sections now work together
 * Fixed issue #484 & #472: Consistent output with imports of same spelling but different case
 * Fixed issue #433: No longer incorrectly add an extra new-line when comment between imports and function definition
Comments 0
openSUSE Build Service is sponsored by