Skip to content

Commit

Permalink
Fixed #1463: Better interactive documentation for future option.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Sep 5, 2020
1 parent 6a3cc76 commit 80cc94e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,9 @@ Changelog
NOTE: isort follows the [semver](https://semver.org/) versioning standard.
Find out more about isort's release policy [here](https://pycqa.github.io/isort/docs/major_releases/release_policy/).

### 5.6.0 TBD
- Fixed #1463: Better interactive documentation for future option.

### 5.5.1 September 4, 2020
- Fixed #1454: Ensure indented import sections with import heading and a preceding comment don't cause import sorting loops.
- Fixed #1453: isort error when float to top on almost empty file.
Expand Down
7 changes: 6 additions & 1 deletion isort/main.py
Expand Up @@ -267,7 +267,12 @@ def _build_arg_parser() -> argparse.ArgumentParser:
"--future",
dest="known_future_library",
action="append",
help="Force isort to recognize a module as part of the future compatibility libraries.",
help="Force isort to recognize a module as part of Python's internal future compatibility "
"libraries. WARNING: this overrides the behavior of __future__ handling and therefore"
" can result in code that can't execute. If you're looking to add dependencies such "
"as six a better option is to create a another section below --future using custom "
"sections. See: https://github.com/PyCQA/isort#custom-sections-and-ordering and the "
"discussion here: https://github.com/PyCQA/isort/issues/1463.",
)
parser.add_argument(
"--fas",
Expand Down

0 comments on commit 80cc94e

Please sign in to comment.