isort

A Python utility / library to sort imports.

MIT License

Downloads
56.7M
Stars
6.4K
Committers
290

Bot releases are visible (Hide)

isort - Latest Release

Published by github-actions[bot] 10 months ago

Changes

  • Apply the bracket fix from issue 471 only for use_parentheses=True (#2184) @bp72
  • confine pre-commit to stages (#2213) @davidculley

🪲 Fixes

  • Fix colors extras (#2212) @staticdev
isort -

Published by github-actions[bot] 10 months ago

Changes

  • Fix integration tests (#2208) @bp72
  • Added a fix for normalizing imports from more than one level of parent modules (issue/2152) (#2191) @bp72

🪲 Fixes

  • Remove optional dependencies without extras (#2207) @staticdev
isort -

Published by github-actions[bot] 11 months ago

Changes

  • Fix 80 line length for wemake linter (#2183) @skatromb
  • Add support for Python 3.12 (#2175) @hugovk
  • fix: add newest version to pre-commit docs (#2190) @AzulGarza
  • Fix assertions in test_git_hook (#2196) @mgorny
  • Removed check for include_trailing_comma for the Hanging Indent wrap mode (#2192) @bp72
  • use the standard library tomllib on sufficiently new python (#2202) @eli-schwartz
  • Update pre-commit.md version number (#2197) @nicobako
  • doc: Update black_compatibility.md (#2177) @JSS95
  • Fix safety sept 2023 (#2178) @staticdev
  • docs: fix black profile documentation (#2163) @nijel
  • fix typo: indended -> indented (#2161) @vadimkerr
  • docs(configuration/options.md): fix missing trailing spaces for hard linebreak (#2157) @JoeyTeng
  • Update pre-commit.md (#2148) @godiard
  • chore: move configurations to pyproject.toml (#2115) @SauravMaheshkar
  • Fix typo in README (#2112) @stefmolin
  • Update version in pre-commit setup to avoid installation issue with poetry (#2103) @stefmolin
  • Skip .pytype directory by default. (#2098) @manueljacob
  • Fix a tip block styling in the Config Files section (#2097) @Klavionik
  • Do not cache configuration files (#1995) @kaste
  • Derive settings_path from --filename (#1992) @kaste
  • Fix year of version 5.12.0 in CHANGELOG.md (#2082) @DjLegolas

🔥 Removals and Deprecations

  • Cleanup deprecated extras (#2089) @staticdev

📦 Dependencies

  • Bump pip from 23.2.1 to 23.3 (#2195) @dependabot
  • Bump urllib3 from 2.0.6 to 2.0.7 (#2185) @dependabot
  • Bump urllib3 from 2.0.5 to 2.0.6 (#2179) @dependabot
  • Bump tornado from 6.3.2 to 6.3.3 (#2165) @dependabot
  • Bump gitpython from 3.1.31 to 3.1.32 (#2166) @dependabot
  • Bump certifi from 2022.12.7 to 2023.7.22 (#2164) @dependabot
  • Bump pipreqs from 0.4.11 to 0.4.12 (#2151) @dependabot
  • Bump pygments from 2.14.0 to 2.15.0 (#2159) @dependabot
  • Bump tornado from 6.2 to 6.3.2 (#2140) @dependabot
  • Bump requests from 2.27.1 to 2.31.0 (#2138) @dependabot
  • Bump pymdown-extensions from 9.9.2 to 10.0 (#2134) @dependabot
  • Bump ipython from 8.7.0 to 8.10.0 (#2090) @dependabot
isort - 5.11.5

Published by timothycrosley over 1 year ago

5.11.5 January 30 2023 [hotfix]

  • Fixed incompatiblity with latest poetry version
isort -

Published by github-actions[bot] over 1 year ago

Changes

  • Fix poetry pip-shims extras dependency (#2078) @jooola
  • Add the ability to restrict which directories isort works against (#1967) @vkomarov-r7
  • docs: fix simple typo, detrmination -> determination (#1948) @timgates42
  • updated format strings to fstrings (#2076) @marksmayo
  • Simplify typeshed integration test (#2075) @AlexWaygood
  • Fix re-export sorter (#2065) @parafoxia
  • Add more docs about filter-files option (#2074) @micahjsmith
  • Removal Python 3.7 (#2064) @staticdev
  • Added test case and fix for cython pure python import (#2063) @jtoledo1974
isort -

Published by github-actions[bot] almost 2 years ago

Changes

  • Remove obsolete toml import from the test suite (#1978) @mgorny
  • Stop installing documentation files to top-level site-packages (#2057) @mgorny
  • Only run release workflows for upstream (#2052) @hugovk

📦 Dependencies

  • Bump Poetry 1.3.1 (#2058) @staticdev
isort - 5.11.3

Published by timothycrosley almost 2 years ago

Changes

  • Renable portray (#2043) @timothycrosley
  • chore(ci): add minimum GitHub token permissions for workflows (#1969) @varunsh-coder

🪲 Fixes

  • Fix packaging pypoetry (#2042) @staticdev
  • Fix settings for py3.11 (#2040) @staticdev

👷 Continuous Integration

  • General CI improvements (#2041) @staticdev
  • Add release workflow (#2026) @staticdev
isort -

Published by github-actions[bot] almost 2 years ago

Changes

  • Renable portray (#2043) @timothycrosley
  • chore(ci): add minimum GitHub token permissions for workflows (#1969) @varunsh-coder

🪲 Fixes

  • Fix packaging pypoetry (#2042) @staticdev
  • Fix settings for py3.11 (#2040) @staticdev

👷 Continuous Integration

  • General CI improvements (#2041) @staticdev
  • Add release workflow (#2026) @staticdev
isort - 5.11.2

Published by github-actions[bot] almost 2 years ago

Changes

  • Hotfix for --version. (#2035) @felixxm
isort - 5.11.1

Published by github-actions[bot] almost 2 years ago

Changes December 12 2022

🪲 Fixes

  • Only call colorama.init if colorama is available (#2032) @tomaarsen
isort - 5.11.0

Published by github-actions[bot] almost 2 years ago

Changes December 12 2022

  • Add support to Python 3.11 support (#2024) @staticdev
  • Remove support to Python 3.6 (#2020) @barrelful
  • Remove restriction to Python <4.0 (#1878) @staticdev
  • Remove language_version for pre-commit hook (#1987) @rafrafek
  • Add GH release helpers (#2023) @staticdev
  • Fix integration tests (#2022) @staticdev
  • Fix unit tests (#2021) @staticdev
  • Fix Rich compatibility (#1961) @ofek
  • Fix Pyodide CDN URL (#1991) @andersk
  • Clarify description of use_parentheses (#1941) @mgedmin
  • Fix black compatibility for .pyi type stub files (#2017) @XuehaiPan
  • Add magic trailing comma option (#1876) @legau
  • Add missing space in unrecoverable exception message (#1933) @andersk
  • skip-gitignore: use allow list, not deny list (#1900) @bmalehorn
  • Infinite loop for unmatched parenthesis (#1919) @anirudnits
  • Document shared profiles (#1896) @matthewhughes934
  • Fix build-backend values in the example plugins (#1892) @mgorny
  • Remove reference to jamescurtin/isort-action (#1885) @AndrewLane
  • Split long cython import lines (#1931) @davidcollins001
  • Update plone profile: copy of black, plus three settings. (#1926) @mauritsvanrees
  • Add a command-line flag to sort all re-exports (#1862) (#1863) @parafoxia
  • Fix lines_before_imports appending lines after comments (#1861) @legau
  • Remove redundant multi_line_output = 3 from "Compatibility with black" (#1858) @jdufresne
  • Add tox config example (#1856) @umonaca
  • doc: Add examples for frozenset and tuple settings (#1822) @sgaist
  • Add multiple config documentation (#1850) @anirudnits

👷 Continuous Integration

  • Pin versions on workflows (#2025) @staticdev

📦 Dependencies

  • Bump certifi from 2021.10.8 to 2022.12.7 (#2018) @dependabot
  • Bump ipython from 7.16.2 to 7.16.3 (#1886) @dependabot
isort - 5.10.1

Published by timothycrosley almost 3 years ago

5.10.1 November 8 2021

  • Fixed #1819: Occasional inconsistency with multiple src paths.
  • Fixed #1840: skip_file ignored when on the first docstring line
isort - 5.10.0

Published by timothycrosley almost 3 years ago

Implemented #1796: Switch to tomli for pyproject.toml configuration loader.
Fixed #1801: CLI bug (--exend-skip-glob, overrides instead of extending).
Fixed #1802: respect PATH customization in nested calls to git.
Fixed #1838: Append only with certain code snippets incorrectly adds imports.
Added official support for Python 3.10
isort - 5.9.3

Published by timothycrosley about 3 years ago

5.9.3 July 28 2021

  • Improved text of skipped file message to mention gitignore feature.
  • Made all exceptions pickleable.
  • Fixed #1779: Pylama integration ignores pylama specific isort config overrides.
  • Fixed #1781: --from-first CLI flag shouldn't take any arguments.
  • Fixed #1792: Sorting literals sometimes ignored when placed on first few lines of file.
  • Fixed #1777: extend_skip is not honored wit a git submodule when skip_gitignore=true.
isort - 5.9.2

Published by timothycrosley over 3 years ago

5.9.2 July 8th 2021

  • Improved behavior of isort --check --atomic against Cython files.
  • Fixed #1769: Future imports added below assignments when no other imports present.
  • Fixed #1772: skip-gitignore will check files not in the git repository.
  • Fixed #1762: in some cases when skip-gitignore is set, isort fails to skip any files.
  • Fixed #1767: Encoding issues surfacing when invalid characters set in __init__.py files during placement.
  • Fixed #1771: Improved handling of skips against named streamed in content.
isort - 5.9.1

Published by timothycrosley over 3 years ago

5.9.1 June 21st 2021 [hotfix]

  • Fixed #1758: projects with many files and skip_ignore set can lead to a command-line overload.
isort - 5.9.0

Published by timothycrosley over 3 years ago

5.9.0 June 21st 2021

  • Improved CLI startup time.
  • Implemented #1697: Provisional support for PEP 582: skip __pypackages__ directories by default.
  • Implemented #1705: More intuitive handling of isort:skip_file comments on streams.
  • Implemented #1737: Support for using action comments to avoid adding imports to individual files.
  • Implemented #1750: Ability to customize output format lines.
  • Implemented #1732: Support for custom sort functions.
  • Implemented #1722: Improved behavior for running isort in atomic mode over Cython source files.
  • Fixed (https://github.com/PyCQA/isort/pull/1695): added imports being added to doc string in some cases.
  • Fixed (https://github.com/PyCQA/isort/pull/1714): in rare cases line continuation combined with tabs can output invalid code.
  • Fixed (https://github.com/PyCQA/isort/pull/1726): isort ignores reverse_sort when force_sort_within_sections is true.
  • Fixed #1741: comments in hanging indent modes can lead to invalid code.
  • Fixed #1744: repeat noqa comments dropped when * import and non * imports exist from the same package.
  • Fixed #1721: repeat noqa comments on separate from lines with force-single-line set, sometimes get dropped.
isort - 5.8.0

Published by timothycrosley over 3 years ago

5.8.0 March 20th 2021

  • Fixed #1631: as import comments can in some cases be duplicated.
  • Fixed #1667: extra newline added with float-to-top, after skip, in some cases.
  • Fixed #1594: incorrect placement of noqa comments with multiple from imports.
  • Fixed #1566: in some cases different length limits for dos based line endings.
  • Implemented #1648: Export MyPY type hints.
  • Implemented #1641: Identified import statements now return runnable code.
  • Implemented #1661: Added "wemake" profile.
  • Implemented #1669: Parallel (-j) now defaults to number of CPU cores if no value is provided.
  • Implemented #1668: Added a safeguard against accidental usage against /.
  • Implemented #1638 / #1644: Provide a flag --overwrite-in-place to ensure same file handle is used after sorting.
  • Implemented #1684: Added support for extending skips with --extend-skip and --extend-skip-glob.
  • Implemented #1688: Auto identification and skipping of some invalid import statements.
  • Implemented #1645: Ability to reverse the import sorting order.
  • Implemented #1504: Added ability to push star imports to the top to avoid overriding explicitly defined imports.
  • Documented #1685: Skip doesn't support plain directory names, but skip_glob does.
isort - 5.7.0

Published by timothycrosley almost 4 years ago

5.7.0 December 30th 2020

  • Fixed #1612: In rare circumstances an extra comma is added after import and before comment.
  • Fixed #1593: isort encounters bug in Python 3.6.0.
  • Implemented #1596: Provide ways for extension formatting and file paths to be specified when using streaming input from CLI.
  • Implemented #1583: Ability to output and diff within a single API call to isort.file.
  • Implemented #1562, #1592 & #1593: Better more useful fatal error messages.
  • Implemented #1575: Support for automatically fixing mixed indentation of import sections.
  • Implemented #1582: Added a CLI option for skipping symlinks.
  • Implemented #1603: Support for disabling float_to_top from the command line.
  • Implemented #1604: Allow toggling section comments on and off for indented import sections.
isort - 5.6.4

Published by timothycrosley about 4 years ago

5.6.4 October 12, 2020

  • Fixed #1556: Empty line added between imports that should be 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