It's a mistake to filter out whitespace changes on Python diffs. These days it's best use `Black --check` or similar in CI to make sure they've matched your whitespace settings, to minimise these changes.
I am working on a GitHub pull request viewer that displays changes using a semantic diff, and therefore has some more advanced whitespace handling behavior than just ignoring leading or trailing whitespace. I tried it with this PR:
It doesn't make a huge difference, but it filters out changes like the added line break in "if value: value = str(value)" nicely. I haven't announced the project yet, but maybe someone will find it useful :-)
robertlagrant|2 years ago
akx|2 years ago
dingledork69|2 years ago
DarkPlayer|2 years ago
https://app.semanticdiff.com/django-money/django-money/pull/...
It doesn't make a huge difference, but it filters out changes like the added line break in "if value: value = str(value)" nicely. I haven't announced the project yet, but maybe someone will find it useful :-)
mindB|2 years ago
wes-k|2 years ago
> A diff view with reduced white space has been available since 2011 by adding ?w=1 to the URL.
https://github.blog/2018-05-01-ignore-white-space-in-code-re...