| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add - Jon Banafato (@jonafato)develop | Timothy Crosley | 2021-03-22 | 1 | -0/+1 |
| | | | | | to contributors list | ||||
| * | Add changelog entry for fix from @jonafato | Timothy Crosley | 2021-03-22 | 1 | -0/+3 |
| | | |||||
| * | Merge pull request #1695 from ↵ | Timothy Edmund Crosley | 2021-03-22 | 2 | -1/+38 |
| |\ | | | | | | | | | jonafato/fix-multiline-docstring-ending-on-line-add_import Fix bug regarding multiline docstrings | ||||
| | * | Fix bug regarding multiline docstrings | Jon Banafato | 2021-03-22 | 2 | -1/+38 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a multiline docstring has its closing quotes at the end of a line instead of on a separate line, isort fails to properly add imports using the `add_imports` config option; instead, it adds the desired imports into the middle of the docstring as illustrated below. While PEP 257 (and other guides) advises that closing quotes appear on their own line, `isort` should not fail here. This change adds a check for closing docstrings at the end of a line in addition to the existing line start check for all comment indicators. A new section of the `test_add_imports` test explicitly tests multiline imports and this failure scenario specifically. --- A working example: ```python """My module. Provides example functionality. """ print("hello, world") ``` Running `isort --add-import "from __future__ import annotations"` produces the following as expected: ```python """My module. Provides example functionality. """ from __future__ import annotations print("hello, world") ``` --- The failure behavior described: ```python """My module. Provides example functionality.""" print("hello, world") ``` Running `isort --add-import "from __future__ import annotations"` as above produces the following result: ```python """My module. from __future__ import annotations Provides example functionality.""" print("hello, world") ``` Subsequent executions add more import lines into the docstring. This behavior occurs even if the file already has the desired imports. | ||||
| * | Update documentation | Timothy Crosley | 2021-03-20 | 1 | -4/+45 |
| | | |||||
| * | Add - Christian Clauss (@cclauss) to acknowledgements | Timothy Crosley | 2021-03-20 | 1 | -0/+1 |
| | | |||||
| * | Bump version to 5.8.05.8.0master | Timothy Crosley | 2021-03-20 | 4 | -3/+4 |
| | | |||||
| * | Merge pull request #1694 from PyCQA/issue/1566 | Timothy Edmund Crosley | 2021-03-20 | 3 | -1/+20 |
| |\ | | | | | Issue/1566 | ||||
| | * | Fix issue #1566: Fixed single location parsed line separator isn't usedissue/1566 | Timothy Crosley | 2021-03-20 | 1 | -1/+7 |
| | | | |||||
| | * | Fix test to ensure output is the same | Timothy Crosley | 2021-03-20 | 1 | -4/+4 |
| | | | |||||
| | * | Add changelog entry for issue #1566 | Timothy Crosley | 2021-03-19 | 1 | -0/+1 |
| | | | |||||
| | * | Create failing test for issue #1566 | Timothy Crosley | 2021-03-19 | 1 | -0/+12 |
| |/ | |||||
| * | Fixed #1594: incorrect placement of noqa comments with multiple from imports. | Timothy Crosley | 2021-03-18 | 3 | -5/+32 |
| | | |||||
| * | Resolved #1504: Added ability to push star imports to the top to avoid ↵ | Timothy Crosley | 2021-03-17 | 5 | -0/+41 |
| | | | | | overriding explicitly defined imports. | ||||
| * | Merge pull request #1693 from PyCQA/issue/1645 | Timothy Edmund Crosley | 2021-03-17 | 6 | -3/+47 |
| |\ | | | | | Issue/1645 | ||||
| | * | Add support for reversing import sort | Timothy Crosley | 2021-03-17 | 2 | -3/+9 |
| | | | |||||
| | * | Add test case for issue #1645: Allowing sort order to be reversed | Timothy Crosley | 2021-03-17 | 1 | -0/+30 |
| | | | |||||
| | * | Add to changelog Implemented #1645: Ability to reverse the import sorting order.issue/1645 | Timothy Crosley | 2021-03-16 | 1 | -0/+1 |
| | | | |||||
| | * | Add config option for reversing sort order | Timothy Crosley | 2021-03-16 | 2 | -0/+7 |
| |/ | |||||
| * | Merge pull request #1692 from PyCQA/issue/1688 | Timothy Edmund Crosley | 2021-03-15 | 4 | -30/+67 |
| |\ | | | | | Issue/1688 | ||||
| | * | Fix issue #1688: from statements removed when invalid | Timothy Crosley | 2021-03-15 | 2 | -30/+45 |
| | | | |||||
| | * | Add test case to ensure incorrectly formatted from statements dont disapear | Timothy Crosley | 2021-03-15 | 1 | -0/+21 |
| | | | |||||
| | * | Add entry to changelog for issue #1688 | Timothy Crosley | 2021-03-15 | 1 | -0/+1 |
| |/ | |||||
| * | Merge pull request #1691 from cclauss/patch-3 | Timothy Edmund Crosley | 2021-03-14 | 3 | -8/+8 |
| |\ | | | | | GitHub Actions: Upgrade actions/cache and actions/setup-python | ||||
| | * | Update integration.yml | Christian Clauss | 2021-03-14 | 1 | -2/+2 |
| | | | |||||
| | * | Update test.yml | Christian Clauss | 2021-03-14 | 1 | -4/+4 |
| | | | |||||
| | * | setup-python | Christian Clauss | 2021-03-14 | 1 | -1/+1 |
| | | | |||||
| | * | GitHub Actions: Upgrade actions/cache | Christian Clauss | 2021-03-14 | 1 | -1/+1 |
| |/ | | | https://github.com/actions/cache/releases | ||||
| * | Resolve #1684: Add support for --extend-skip and --extend-skip-glob | Timothy Crosley | 2021-03-13 | 4 | -6/+45 |
| | | |||||
| * | Added changelog entry for #1685 | Timothy Crosley | 2021-03-12 | 1 | -0/+1 |
| | | |||||
| * | Add - @dongfangtianyu to acknowledgements file | Timothy Crosley | 2021-03-11 | 1 | -0/+1 |
| | | |||||
| * | Update config option docs | Timothy Crosley | 2021-03-11 | 1 | -14/+49 |
| | | |||||
| * | Merge pull request #1689 from gofr/1685/document-skip | Timothy Edmund Crosley | 2021-03-11 | 1 | -1/+3 |
| |\ | | | | | Clarify documentation for --skip option | ||||
| | * | fixup! fixup! Clarify documentation for --skip option | gofr | 2021-03-11 | 1 | -1/+1 |
| | | | |||||
| | * | fixup! Clarify documentation for --skip option | gofr | 2021-03-11 | 1 | -1/+1 |
| | | | |||||
| | * | Clarify documentation for --skip option | gofr | 2021-03-11 | 1 | -1/+3 |
| |/ | | | | | | | | | | | | | | The --skip option only handles full file paths or names of individual path components. For example, "foo/bar/baz.py" can be used to skip just that file. And "foo" would skip any files with that name and any files nested in directories with that name. On the other hand, "foo/bar" does *not* skip everything in the "foo/bar" directory. --skip-glob can be used to achieve this. Attempt to clarify the documentation to say that. | ||||
| * | Merge pull request #1664 from ↵ | Timothy Edmund Crosley | 2021-03-10 | 4 | -1/+85 |
| |\ | | | | | | | | | gofr/issue/1659/force-sort-sections-with-relative-imports Sort relative imports correctly with force_sort_within_sections | ||||
| | * | Merge branch 'develop' into issue/1659/force-sort-sections-with-relative-imports | Timothy Edmund Crosley | 2021-03-10 | 14 | -302/+521 |
| | |\ | |/ |/| | |||||
| * | | Merge combinabele if statements as recommended by deepsource | Timothy Crosley | 2021-03-05 | 1 | -21/+18 |
| | | | |||||
| * | | Implemented #1638 / #1644: Provide a flag to ensure same file handle is ↵ | Timothy Crosley | 2021-03-04 | 6 | -1/+20 |
| | | | | | | | | | used after sorting. | ||||
| * | | Merge pull request #1682 from PyCQA/issue/1667 | Timothy Edmund Crosley | 2021-03-03 | 3 | -51/+72 |
| |\ \ | | | | | | | Issue/1667 | ||||
| | * | | Merge if statements per deepsource | Timothy Crosley | 2021-03-03 | 1 | -14/+14 |
| | | | | |||||
| | * | | Fixed #1667: Changelog | Timothy Crosley | 2021-03-03 | 1 | -0/+1 |
| | | | | |||||
| | * | | Don't add newlines if there are is no output | Timothy Crosley | 2021-03-03 | 1 | -37/+40 |
| | | | | |||||
| | * | | Fix indentation | Timothy Crosley | 2021-03-03 | 1 | -1/+1 |
| | | | | |||||
| | * | | Create failing test for issue #1667issue/1667 | Timothy Crosley | 2021-03-02 | 1 | -0/+17 |
| |/ / | |||||
| * | | Merge pull request #1680 from PyCQA/issue/1668 | Timothy Edmund Crosley | 2021-03-01 | 4 | -194/+259 |
| |\ \ | | | | | | | Issue/1668 | ||||
| | * | | Add test for allowing root, switch to allow root command | Timothy Crosley | 2021-03-01 | 2 | -7/+10 |
| | | | | |||||
| | * | | Update dependencies | Timothy Crosley | 2021-03-01 | 1 | -193/+240 |
| | | | | |||||
| | * | | Fixed #1668 | Timothy Crosley | 2021-03-01 | 1 | -1/+2 |
| | | | | |||||
