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

out + diff from API #1583

Closed
timothycrosley opened this issue Oct 28, 2020 · 1 comment · Fixed by #1588
Closed

out + diff from API #1583

timothycrosley opened this issue Oct 28, 2020 · 1 comment · Fixed by #1588
Labels
enhancement New feature or request
Milestone

Comments

@timothycrosley
Copy link
Member

isort should provide a way from the Python API to process an existing file and output to a stream the new version of that file, as well as a diff to a different stream.

isort_diff = StringIO()
isort_output = StringIO()
isort.file("x.py", show_diff=isort_diff, output=StringIO())
@timothycrosley timothycrosley added the enhancement New feature or request label Oct 28, 2020
@timothycrosley timothycrosley added this to the 5.7.0 milestone Oct 28, 2020
@sgaist
Copy link
Contributor

sgaist commented Oct 30, 2020

Hi,

I'd like to take a shot at this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants