Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement custom output handling in sort_file #1588

Merged
merged 3 commits into from Nov 1, 2020
Merged

Implement custom output handling in sort_file #1588

merged 3 commits into from Nov 1, 2020

Conversation

sgaist
Copy link
Contributor

@sgaist sgaist commented Oct 30, 2020

This will allow the following to be used:

isort_diff = StringIO()
isort_output = StringIO()
isort.file("x.py",
           show_diff=isort_diff,
           output=isort_output)

Fixes #1583

sgaist and others added 3 commits October 30, 2020 15:15
This will allow the following to be used:

    isort_diff = StringIO()
    isort_output = StringIO()
    isort.file("x.py",
               show_diff=isort_diff,
               output=isort_output)

Fixes #1583
Update test to be OS newline agnostic for diff
@timothycrosley
Copy link
Member

Thank you!

@timothycrosley timothycrosley merged commit a71ae2b into PyCQA:develop Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

out + diff from API
2 participants