This PR adds color to the diff produced by ci/diff.py:
This is a stepping stone to eventually adding interactive diff reviewing similar to pytest --inline-snapshot=review:
Compatibility
I stored the terminal output of diff.py before and after the code changes, and they produce identical output (except diff_post has color when not redirected to a file):
This PR adds color to the diff produced by
ci/diff.py
:This is a stepping stone to eventually adding interactive diff reviewing similar to
pytest --inline-snapshot=review
:Compatibility
I stored the terminal output of
diff.py
before and after the code changes, and they produce identical output (exceptdiff_post
has color when not redirected to a file):