Skip to content

Commit

Permalink
Fixed #1289: Stream usage no longer auto picking up config file from …
Browse files Browse the repository at this point in the history
…current working directory.
  • Loading branch information
timothycrosley committed Jul 8, 2020
1 parent 9ce5f74 commit c0ebbd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ NOTE: isort follows the [semver](https://semver.org/) versioning standard.
- Fixed #1298: CLI Help out of date with isort 5.
- Fixed #1290: Unecessary blank lines above nested imports when import comments turned on.
- Fixed #1297: Usage of `--add-imports` alongside `--check` is broken.
- Fixed #1289: Stream usage no longer auto picking up config file from current working directory.

### 5.0.4 July 6, 2020
- Fixed #1264: a regression with comment handling and `force_sort_within_sections` config option
Expand Down
1 change: 1 addition & 0 deletions isort/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ def main(argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] =
print(QUICK_GUIDE)
return
elif file_names == ["-"] and not show_config:
arguments.setdefault("settings_path", os.getcwd())
api.sort_stream(
input_stream=sys.stdin if stdin is None else stdin,
output_stream=sys.stdout,
Expand Down

0 comments on commit c0ebbd0

Please sign in to comment.