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.3.15

Published by timothycrosley over 5 years ago

4.3.15 - March 10, 2019 - hot fix release

  • Fixed a regression with handling streaming input from pipes (Issue #895)
  • Fixed handling of \x0c whitespace character (Issue #811)
  • Improved CLI documentation
isort - 4.3.14

Published by timothycrosley over 5 years ago

4.3.14 - March 9, 2019 - hot fix release

  • Fixed a regression with /directory/.py style patterns
isort - 4.3.13

Published by timothycrosley over 5 years ago

4.3.13 - March 8, 2019 - hot fix release

  • Fixed the inability to accurately determine import section when a mix of conda and virtual environments are used.
  • Fixed some output being printed even when --quiet mode is enabled.
  • Fixed issue #890 interoperability with PyCharm by allowing case sensitive non type grouped sorting.
  • Fixed issue #889 under some circumstances isort will incorrectly add a new line at the beginning of a file.
  • Fixed issue #885 many files not being skipped according to set skip settings.
  • Fixed issue #842 streaming encoding improvements.
isort - 4.3.12

Published by timothycrosley over 5 years ago

4.3.12 - March 6, 2019 - hot fix release

  • Fix error caused when a virtual environment not detected
isort - 4.3.11

Published by timothycrosley over 5 years ago

4.3.11 - March 6, 2019 - hot fix release

  • Fixed issue #876: confused by symlinks pointing to virtualenv gives FIRSTPARTY not THIRDPARTY
  • Fixed issue #873: current version skips every file on travis
  • Additional caching to reduce performance regression introduced in 4.3.5
  • Improved handling of pex files and other binary Python files
isort - 4.3.10

Published by timothycrosley over 5 years ago

4.3.10 - March 2, 2019 - hot fix release

  • Fixed Windows incompatibilities (Issue #835)
  • Fixed relative import sorting bug (Issue #417)
  • Fixed "no_lines_before" to also be respected from previous empty sections.
  • Fixed slow-down introduced by finders mechanism by adding a LRU cache (issue #848)
  • Fixed issue #842 default encoding not-set in Python2
  • Restored Windows automated testing
  • Added Mac automated testing
isort - 4.3.8

Published by timothycrosley over 5 years ago

4.3.8 - February 25, 2019 - hot fix release

  • Fixed a bug that led to the recursive option not always been available from the command line.
isort - 4.3.7

Published by timothycrosley over 5 years ago

4.3.7 - February 25, 2019 - hot fix release

  • Expands the finder failsafe to occur on the creation of the finder objects.
isort - 4.3.9

Published by timothycrosley over 5 years ago

4.3.9 - Feburary 25, 2019 - hot fix release

  • Fixed a bug that led to an incompatibility with black: #831
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

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