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

Colored diff output #307

Open
friedkeenan opened this issue Jun 2, 2024 · 0 comments
Open

Colored diff output #307

friedkeenan opened this issue Jun 2, 2024 · 0 comments

Comments

@friedkeenan
Copy link

As is, to get colored diff output, one needs to use an external tool like colordiff to color the diff for readability, however this also seems to complicate the "checking" feature of returning an error code if changes are needed. It would be convenient and useful to be able to just pass an argument to autoflake for whether or not to color the diff output.

Unfortunately, difflib does not seem to have a way to get colored output, but I did find this gist which could possibly be helpful (particularly the comments).

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

No branches or pull requests

1 participant