<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/isort.git/isort, branch develop</title>
<subtitle>github.com: timothycrosley/isort.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/'/>
<entry>
<title>Fix bug regarding multiline docstrings</title>
<updated>2021-03-22T17:54:52+00:00</updated>
<author>
<name>Jon Banafato</name>
<email>jon@jonafato.com</email>
</author>
<published>2021-03-22T17:24:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=2ccb49776957dbcb8b05ac4cc5eb9ef20a54a25d'/>
<id>2ccb49776957dbcb8b05ac4cc5eb9ef20a54a25d</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump version to 5.8.0</title>
<updated>2021-03-21T05:25:02+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-21T05:25:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=a6222a8a125ec719724e628a5d3d0d5c60923281'/>
<id>a6222a8a125ec719724e628a5d3d0d5c60923281</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix issue #1566: Fixed single location parsed line separator isn't used</title>
<updated>2021-03-20T07:06:38+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-20T07:06:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=404d809a692d68db0f36016b91171befec48be81'/>
<id>404d809a692d68db0f36016b91171befec48be81</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #1594: incorrect placement of noqa comments with multiple from imports.</title>
<updated>2021-03-19T06:23:02+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-19T06:23:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=5a0ebba5174d67210b6b23f8f644f1b0bc03de73'/>
<id>5a0ebba5174d67210b6b23f8f644f1b0bc03de73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolved #1504: Added ability to push star imports to the top to avoid overriding explicitly defined imports.</title>
<updated>2021-03-18T05:22:22+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-18T05:22:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=33b4cc3abb700cd89a52ef5fd27080bf32c991a4'/>
<id>33b4cc3abb700cd89a52ef5fd27080bf32c991a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for reversing import sort</title>
<updated>2021-03-17T07:32:36+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-17T07:32:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=cb896cd47962034f681171d3eced45a82f0ddf0b'/>
<id>cb896cd47962034f681171d3eced45a82f0ddf0b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add config option for reversing sort order</title>
<updated>2021-03-17T04:03:38+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-17T04:03:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=d4907b936e03a313c2b0305f63fe57a6c333cb52'/>
<id>d4907b936e03a313c2b0305f63fe57a6c333cb52</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix issue #1688: from statements removed when invalid</title>
<updated>2021-03-16T06:04:57+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-16T06:04:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=9c18cbb630749925b71f9904e4581a8657c33d3a'/>
<id>9c18cbb630749925b71f9904e4581a8657c33d3a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolve #1684: Add support for --extend-skip and --extend-skip-glob</title>
<updated>2021-03-14T02:41:15+00:00</updated>
<author>
<name>Timothy Crosley</name>
<email>timothy.crosley@gmail.com</email>
</author>
<published>2021-03-14T02:41:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=d09acd0974847314278e18c92db13950555e0ae9'/>
<id>d09acd0974847314278e18c92db13950555e0ae9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fixup! fixup! Clarify documentation for --skip option</title>
<updated>2021-03-11T16:59:08+00:00</updated>
<author>
<name>gofr</name>
<email>32750931+gofr@users.noreply.github.com</email>
</author>
<published>2021-03-11T16:59:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/isort.git/commit/?id=6fb82c3c802d6e8d25783987eb93fe9c5b9dddba'/>
<id>6fb82c3c802d6e8d25783987eb93fe9c5b9dddba</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
