Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Update dependency isort to v5 #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update dependency isort to v5 #101

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jul 4, 2020

This PR contains the following updates:

Package Update Change
isort (source, changelog) major ==4.2.15 -> ==5.3.2

Release Notes

timothycrosley/isort

v5.3.2

Compare Source

  • Fixed incorrect warning code (W503->W0503).

v5.3.1

Compare Source

  • Improve upgrade warnings to be less noisy and point to error codes for easy interoperability with Visual Studio Code (see: #​1363).

v5.3.0

Compare Source

  • Implemented ability to treat all or select comments as code (issue #​1357)
    • Implemented ability to use different configs for different file extensions (issue #​1162)
    • Implemented ability to specify the types of imports (issue #​1181)
    • Implemented ability to dedup import headings (issue #​953)
    • Added experimental support for sorting literals (issue #​1358)
    • Added experimental support for sorting and deduping groupings of assignments.
    • Improved handling of deprecated single line variables for usage with Visual Studio Code (issue #​1363)
    • Improved handling of mixed newline forms within same source file.
    • Improved error handling for known sections.
    • Improved API consistency, returning a boolean value for all modification API calls to indicate if changes were made.
    • Fixed #​1366: spurious errors when combining skip with --gitignore.
    • Fixed #​1359: --skip-gitignore does not honor ignored symlink

Internal Development:

  • Initial hypothesmith powered test to help catch unexpected syntax parsing and output errors (thanks @​Zac-HD!)

v5.2.2

Compare Source

  • Fixed #​1356: return status when arguments are passed in without files or a content stream.

v5.2.1

Compare Source

  • Update precommit to default to filtering files that are defined in skip.
    • Improved relative path detection for skip config usage.
    • Added recursive symbolic link protection.
    • Implemented #​1177: Support for color output using --color.
    • Implemented recursive symlink detection support.

v5.2.0

Compare Source

  • Implemented #​1335: Official API for diff capturing.
    • Implemented #​1331: Warn when sections don't match up.
    • Implemented #​1261: By popular demand, filter_files can now be set in the config option.
    • Implemented #​960: Support for respecting git ignore via "--gitignore" or "skip_gitignore=True".
    • Implemented #​727: Ability to only add imports if existing imports exist.
    • Implemented #​970: Support for custom sharable isort profiles.
    • Implemented #​1214: Added support for git_hook lazy option (Thanks @​sztamas!)
    • Implemented #​941: Added an additional multi_line_output mode for more compact formatting (Thanks @​sztamas!)
    • Implemented #​1020: Option for LOCALFOLDER.
    • Implemented #​1353: Added support for output formatting plugins.
    • # isort: split can now be used at the end of an import line.
    • Fixed #​1339: Extra indent is not preserved when isort:skip is used in nested imports.
    • Fixed #​1348: --diff works incorrectly with files that have CRLF line endings.
    • Improved code repositories usage of pylint tags (#​1350).

v5.1.4

Compare Source

  • Fixed issue #​1333: Use of wrap_length raises an exception about it not being lower or equal to line_length.
    • Fixed issue #​1330: Ensure stdout can be stubbed dynamically for show_unified_diff function.

v5.1.3

Compare Source

  • Fixed issue #​1329: Fix comments duplicated when --fass option is set.

v5.1.2

Compare Source

  • Fixed issue #​1219 / #​1326: Comments not wrapped for long lines
    • Fixed issue #​1156: Bug related to isort:skip usage followed by a multiline comment block

v5.1.1

Compare Source

  • Fixed issue #​1322: Occasionally two extra newlines before comment with -n & --fss.
    • Fixed issue #​1189: --diff broken when reading from standard input.

v5.1.0

Compare Source

  • isort now throws an exception if an invalid settings path is given (issue #​1174).
    • Implemented support for automatic redundant alias removal (issue #​1281).
    • Implemented experimental support for floating all imports to the top of a file (issue #​1228)
    • Fixed #​1178: support for semicolons in decorators.
    • Fixed #​1315: Extra newline before comment with -n + --fss.
    • Fixed #​1192: -k or --keep-direct-and-as-imports option has been deprecated as it is now always on.

Formatting changes implied:

  • Fixed #​1280: rewrite of as imports changes the behavior of the imports.

v5.0.9

Compare Source

  • Fixed #​1301: Import headings in nested sections leads to check errors

v5.0.8

Compare Source

v5.0.7

Compare Source

  • Fixed #​1306: unexpected --diff behavior.
    • Fixed #​1279: Fixed NOQA comment regression.

v5.0.6

Compare Source

  • Fixed #​1302: comments and --trailing-comma can generate invalid code.
    • Fixed #​1293: extra new line in indented imports, when immediately followed by a comment.
    • Fixed #​1304: isort 5 no longer recognises sre_parse as a stdlib module.
    • Fixed #​1300: add_imports moves comments following import section.
    • Fixed #​1276: Fix a bug that creates only one line after triple quotes.

v5.0.5

Compare Source

  • Fixed #​1285: packaging issue with bundling tests via poetry.
    • Fixed #​1284: Regression when sorting .pyi files from CLI using black profile.
    • Fixed #​1275 & #​1283: Blank line after docstring removed.
    • Fixed #​1298: CLI Help out of date with isort 5.
    • Fixed #​1290: Unecessary blank lines above nested imports when import comments turned on.
    • Fixed #​1297: Usage of --add-imports alongside --check is broken.
    • Fixed #​1289: Stream usage no longer auto picking up config file from current working directory.
    • Fixed #​1296: Force_single_line setting removes immediately following comment line.
    • Fixed #​1295: ensure_newline_before_comments doesnt work with force_sort_within_sections.
    • Setting not_skip will no longer immediately fail but instead give user a warning and direct
      to upgrade docs.

v5.0.4

Compare Source

  • Fixed #​1264: a regression with comment handling and force_sort_within_sections config option
    • Added warning for deprecated CLI flags and linked to upgrade guide.

v5.0.3

Compare Source

  • Fixed setup.py command incorrectly passing check=True as a configuration parameter (see: #​1258)
    • Fixed missing patch version
    • Fixed issue #​1253: Atomic fails when passed in not readable output stream

v5.0.2

Compare Source

  • Ensured black profile was complete, adding missing line_length definition.

v5.0.1

Compare Source

  • Fixed a runtime error in a vendored dependency (toml).

v5.0.0

Compare Source

Breaking changes:

  • isort now requires Python 3.6+ to run but continues to support formatting on ALL versions of python including
    Python 2 code.
  • isort deprecates official support for Python 3.4, removing modules only in this release from known_standard_library:
    • user
  • Config files are no longer composed on-top of each-other. Instead the first config file found is used.
    • Since there is no longer composition negative form settings (such as --dont-skip or it's config file variant not_skip) are no longer required and have been removed.
  • Two-letter shortened setting names (like ac for atomic) now require two dashes to avoid ambiguity: --ac.
  • For consistency with other tools -v now is shorthand for verbose and -V is shorthand for version. See Issue: #​1067.
  • length_sort_{section_name} config usage has been deprecated. Instead length_sort_sections list can be used to specify a list of sections that need to be length sorted.
  • safety_excludes and unsafe have been deprecated
  • Config now includes as default full set of safety directories defined by safety excludes.
  • --recursive option has been removed. Directories passed in are now automatically sorted recursive.
  • --apply option has been removed as it is the default behaviour.
  • isort now does nothing, beyond giving instructions and exiting status code 0, when ran with no arguments.
    • a new --interactive flag has been added to enable the old style behaviour.
  • isort now works on contiguous sections of imports, instead of one whole file at a time.
  • isort now formats all nested "as" imports in the "from" form. import x.y as a becomes from x import y as a. NOTE: This was undone in version 5.1.0 due to feedback it caused issues with some project conventions.
  • keep_direct_and_as_imports option now defaults to True.
  • appdirs is no longer supported. Unless manually specified, config should be project config only.
  • toml is now installed as a vendorized module, meaning pyproject.toml based config is always supported.
  • Completely new Python API, old version is removed and no longer accessible.
  • New module placement logic and module fully replaces old finders. Old approach is still available via --old-finders.

Internal:

  • isort now utilizes mypy and typing to filter out typing related issues before deployment.

  • isort now utilizes black internally to ensure more consistent formatting.

  • profile support for common project types (black, django, google, etc)

  • Much much more. There is some difficulty in fully capturing the extent of changes in this release - just because of how all encompassing the release is. See: Github Issues for more.

v4.3.21

Compare Source

  • Fixed issue #​957 - Long aliases and use_parentheses generates invalid syntax

v4.3.20

Compare Source

  • Fixed issue #​948 - Pipe redirection broken on Python2.7

v4.3.19

Compare Source

  • Fixed issue #​942 - correctly handle pyi (Python Template Files) to match black output

v4.3.18

Compare Source

  • Fixed an issue with parsing files that contain unicode characters in Python 2
  • Fixed issue #​924 - Pulling in pip internals causes depreciation warning
  • Fixed issue #​938 - Providing a way to filter explicitly passed in files via configuration settings (--filter-files)
  • Improved interoperability with toml configuration files

v4.3.17

Compare Source

  • Fixed issue #​905 & #​919: Import section headers behaving strangely

v4.3.16

Compare Source

  • Fixed issue #​909 - skip and skip-glob are not enforced when using settings-path.
  • Fixed issue #​907 - appdirs optional requirement does not correctly specify version
  • Fixed issue #​902 - Too broad warning about missing toml package
  • Fixed issue #​778 - remove user from known standard library as it's no longer in any supported Python version.

v4.3.15

Compare Source

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

v4.3.14

Compare Source

  • Fixed a regression with /directory/.py style patterns

v4.3.13

Compare Source

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

v4.3.12

Compare Source

  • Fix error caused when virtual environment not detected

v4.3.11

Compare Source

  • 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

v4.3.10

Compare Source

  • 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

v4.3.9

Compare Source

  • Fixed a bug that led to an incompatibility with black: #​831

v4.3.8

Compare Source

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

v4.3.7

Compare Source

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

v4.3.6

Compare Source

  • Fixes a fatal error that occurs if a single finder throws an exception. Important as we add more finders that utilize third party libraries.

v4.3.5

Compare Source

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

v4.3.4

Compare Source

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

v4.3.3

Compare Source

  • Fixed issue #​665: Tabs turned into single spaces

v4.3.2

Compare Source

  • Fixed issue #​957 - Long aliases and use_parentheses generates invalid syntax

v4.3.1

Compare Source

  • Fixed issue #​942 - correctly handle pyi (Python Template Files) to match black output

v4.3.0

Compare Source

  • 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
  • Fixed #​590: Import as mucks with alphabetical sorting
  • 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.

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/isort-5.x branch 8 times, most recently from bbbf9cc to 52e06b6 Compare July 11, 2020 08:37
@renovate renovate bot force-pushed the renovate/isort-5.x branch 4 times, most recently from d056185 to 8284a01 Compare July 18, 2020 04:26
@renovate renovate bot force-pushed the renovate/isort-5.x branch 3 times, most recently from 2b8af50 to effdecd Compare July 30, 2020 08:39
@renovate renovate bot force-pushed the renovate/isort-5.x branch 2 times, most recently from 816df97 to 0a6bd3a Compare August 7, 2020 08:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant