isort

A Python utility / library to sort imports.

MIT License

Downloads
56.7M
Stars
6.4K
Committers
290

Bot releases are visible (Hide)

isort - 4.2.11 hotfix

Published by timothycrosley over 7 years ago

IMPORTANT NOTE: This will be the last release with Python 2.6 support, subsequent releases will be 2.7+ only

  • Fixed #546: Can't select y/n/c after latest update
  • Fixed #545: Incorrectly moves future imports above encoding comments
isort - 4.2.9 hotfix

Published by timothycrosley over 7 years ago

IMPORTANT NOTE: This will be the last release with Python 2.6 support, subsequent releases will be 2.7+ only

  • Fixed #428: Check only modifies sorting
  • Fixed #540: Not correctly identifying stdlib modules
isort - 4.2.8

Published by timothycrosley over 7 years ago

IMPORTANT NOTE: This will be the last release with Python 2.6 support, subsequent releases will be 2.7+ only

  • 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
  • Fixed issue #419: Path specification for skipped paths is not Unix/Windows inter-operable.
    Breaking Changes:
    • Fixed issue #511: All command line options with an underscore, have had the underscore replaced with a dash for consistency. This effects: multi-line, add-import, remove-import, force-adds, --force-single-line-imports, and length-sort.
    • Replaced the --enforce-whitespace option with --ignore-whitespace to restore original behavior of strict whitespace by default
isort - 4.2.4

Published by timothycrosley over 8 years ago

  • Fixed an issue that caused module that contained functions before doc strings, to incorrectly place imports
  • Fixed regression in how force_alphabetical_sort was being interpretted (issue #409)
  • Fixed stray print statement printing skipped files (issue #411)
  • Added option for forcing imports into a single bucket: no_sections
  • Added option for new lines between import types (from, straight): lines_between_sections
isort - 4.2.3

Published by timothycrosley over 8 years ago

A bug fix release - including several bug fixes

isort -

Published by timothycrosley about 9 years ago

isort -

Published by timothycrosley about 9 years ago

isort -

Published by timothycrosley about 9 years ago

isort -

Published by timothycrosley about 9 years ago

isort -

Published by timothycrosley about 9 years ago

isort -

Published by timothycrosley about 9 years ago

isort - 3.9.6

Published by timothycrosley over 9 years ago

  • Fixed inconsistent ordering of imports when sorting from imports case-insensitively
  • Fixed comments not being placed correctly, when more then one exists above an import
isort - 3.9.5

Published by timothycrosley over 9 years ago

  • Fixed a problem that caused the comments at the top of a file to sometimes get mangled or removed.
  • Fixed a problem that occurred when imports had the word "from" or "import" in them.
  • Improved how import sections are determined when running isort within a virtualenv.
  • Added support for displaying from imports before normal ones using 'from_first' setting.
  • Added support for separately specifying wrap_length from line length limit.
  • Added support for adding trailing commas automatically.
isort -

Published by timothycrosley almost 10 years ago

  • Adds automatic support for keeping comments that are placed directly above straight or from imports.
isort -

Published by timothycrosley almost 10 years ago

  • Improves granularity of placement control.
  • Deprecates --lines option, replaces with --line-width
isort -

Published by timothycrosley almost 10 years ago

  • Improved wrapping on long lines, to avoid splitting module name
  • Add support for custom placement of import sections
  • Fixed bug with imports that contain a tag
isort - 1.3.2

Published by timothycrosley about 11 years ago

  • Fixed a bug that caused an extra new line at the end of files when parsed using stdin
  • Improved module placement detection

Both improvements come thanks to @dcowgill

isort - 1.3.1

Published by timothycrosley about 11 years ago

  • Added support for parsing files with unicode characters
  • Fallback to distutils when setuptools is not present
isort - 1.3.0

Published by timothycrosley about 11 years ago

  • Correctly handle imports at the end of a file
  • Correctly identify modules from . as from within the local project
  • Fixed a bug where code in the middle of imports was sometimes removed
  • Enable isort to be used without configparser
isort - 1.2.5

Published by timothycrosley about 11 years ago

  • Switch to Setup tools
  • Fix bug where files in "skip" setting don't get skipped
Package Rankings
Top 0.58% on Pypi.org
Top 11.98% on Formulae.brew.sh
Top 3.25% on Alpine-edge
Top 3.84% on Proxy.golang.org
Top 1.47% on Alpine-v3.18
Top 4.55% on Alpine-v3.17
Badges
Extracted from project README
isort - isort your imports, so you don't have to. PyPI version Test Status Lint Status Code coverage Status License Join the chat at https://gitter.im/timothycrosley/isort Downloads Code style: black Imports: isort DeepSource Imports: isort