isort

A Python utility / library to sort imports.

MIT License

Downloads
56.7M
Stars
6.4K
Committers
290

Bot releases are hidden (Show)

isort - 4.3.6

Published by timothycrosley over 5 years ago

4.3.6 - February 24, 2019 - hot fix release

  • Fixes a fatal error that occurs if a single finder throws an exception. Important as we add more finders that utilize third-party libraries.
isort - 4.3.5 - NOTE: Last Python2 Release

Published by timothycrosley over 5 years ago

This is the final Python 2.x release of isort, and includes the following major changes:

Potentially Interface Breaking:

  • The -r option for removing imports has been renamed -rm to avoid accidental deletions and confusion with the -rc recursive option.
  • __init__.py has been removed from the default ignore list. The default ignore list is now empty - with all items needing to be explicitly ignored.
  • Isort will now by default ignore .tox / venv folders in an effort to be "safe". You can disable this behaviour by setting the "--unsafe" flag, this is separate from any skip or not skip rules you may have in place.
  • Isort now allows for files missing closing newlines in whitespace check
  • distutils support has been removed to simplify setup.py

New:

  • Official Python 3.7 Compatibility.
  • Support for using requirements files to auto determine third-paty section if pipreqs & requirementslib are installed.
  • Added support for using pyproject.toml if toml is installed.
  • Added support for XDG_HOME if appdirs is installed.
  • An option has been added to enable ignoring trailing comments ('ignore_comments') defaulting to False.
  • Added support to enable line length sorting for only specific sections
  • Added a correctly_sorted property on the SortsImport to enable more intuitive programmatic checking.

Fixes:

  • Improved black compatibility.
  • Isort will no detect files in the CWD as first-party.
  • Fixed several cases where '-ns' or 'not_skip' was being incorrectly ignored.
  • Fixed sorting of relative path imports ('.', '..', '...', etc).
  • Fixed bugs caused by a failure to maintain order when loading iterables from config files.
  • Correctly handle CPython compiled imports and others that need EXT_SUFFIX to correctly identify.
  • Fixed handling of Symbolic Links to follow them when walking the path.
  • Fixed handling of relative known_paths.
  • Fixed lack of access to all wrap modes from the CLI.
  • Fixed handling of FIFO files.
  • Fixed a bug that could result in multiple imports being inserted on the same line.
isort -

Published by timothycrosley over 6 years ago

+### 4.3.4 - Feburary 12, 2018 - hotfix release

  • Fixed issue #671: isort is corrupting CRLF files
isort -

Published by timothycrosley over 6 years ago

4.3.3 - Feburary 5, 2018 - hotfix release

  • Fixed issue #665: Tabs turned into single spaces
isort -

Published by timothycrosley over 6 years ago

16a3dfb8d9b0a9a697c788072c795f258317ed9e

isort -

Published by timothycrosley over 6 years ago

  • Fixed setup.py errors
  • Fixed issue #654: Trailing comma count error
  • Fixed issue #651: Add imports option is broken
  • Fixed issue #650: Wrong error message displayed
isort - 4.3.0

Published by timothycrosley over 6 years ago

  • Fixed #557: force_alphabetical_sort and force_sort_within_sections can now be utilized together without extra new lines
  • Fix case-sensitive path existence check in Mac OS X
  • Added --no-lines-before for more granular control over section output
  • Fixed #493: Unwanted conversion to Windows line endings
  • Implemented --version-number to retrieve just the version number without the isort logo
  • Breaking changes
    • Python 2.7+ only (dropped 2.6) allowing various code simplifications and improvements.
isort - 4.2.15 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 certain one line imports not being successfully wrapped
isort - 4.2.14

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 #559 & #565: Added missing standard library imports
isort - 4.2.13 hotfix

Published by timothycrosley over 7 years ago

4.2.13 - June 2, 2017 - hotfix release

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

  • Fixed #553: Check only and --diff now work together again
isort - 4.2.12 hotfix

Published by timothycrosley over 7 years ago

Fixed a problem with the wheel distribution

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

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