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

Official API for capturing diff output #1335

Closed
timothycrosley opened this issue Jul 20, 2020 · 0 comments
Closed

Official API for capturing diff output #1335

timothycrosley opened this issue Jul 20, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@timothycrosley
Copy link
Member

Capturing diff output is a common need for sub projects that depend on isort. Currently, there is no official API method of doing so resulting in downstream users needing to use creative and undocumented solutions to capture the output. The proposed resolution is:

  • Make sure show_diff is available as an argument for all API methods.
  • Allow either a boolean or TextStream to be provided. If a text stream is provided it should be used, otherwise if True is provided sys.stdout or the current output stream should be used.
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

No branches or pull requests

1 participant