Skip to content

Colored diff output #307

@friedkeenan

Description

@friedkeenan

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions