Skip to content

Commit

Permalink
Add section for action comments
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jul 1, 2020
1 parent 03a2ae0 commit 0de7d94
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/major_releases/introducing_isort_5.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ It's also the first version to require Python 3 (Python 3.6+ at that!) to run -
This does mean that there may be some pain with the upgrade process, but we believe the improvements will be well worth it.

[Click here for an attempt at full changelog with a list of breaking changes.](https://timothycrosley.github.io/isort/CHANGELOG/)

[Try isort 5 right now from your browser!](https://timothycrosley.github.io/isort/docs/interactive/try/)

So why the massive change?
Expand Down Expand Up @@ -83,6 +84,26 @@ from wstring cimport wstring as cpp_wstring

isort 5 adds seamless support for Cython (`.pyx`) files.

# Action Comments

```python3
import e
import f

# isort: off <- Turns isort parsing off

import b
import a

# isort: on <- Turns isort parsing back on

import c
import d
```

isort 5 adds support for [Action Comments](https://timothycrosley.github.io/isort/docs/configuration/action_comments/) which provide a quick and convient way to control the flow of parsing within single source files.


# First class Python API

```python3
Expand Down

0 comments on commit 0de7d94

Please sign in to comment.