You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a CI I want to both check that the formatting is correct (via return value from gersemi) and if it failed show the wrong formatting.
Both the --check and --diff arguments do part of what I want, but if I try to combine them gersemi seems to ignore the --check and always returns 0.
One can of course easily workaround this by simple calling gersemi twice, but still would be nice if one could coming both arguments and only do one call.
The text was updated successfully, but these errors were encountered:
Fixed in 0.19.1. I've modeled --diff after black but I wasn't aware it's possible to use it with --check at the same time.
It's also worth noting that somewhat similar behaviour is possible with pre-commit's --show-diff-on-failure but I'm not that familiar with it so your mileage may vary.
In a CI I want to both check that the formatting is correct (via return value from gersemi) and if it failed show the wrong formatting.
Both the
--check
and--diff
arguments do part of what I want, but if I try to combine them gersemi seems to ignore the--check
and always returns 0.One can of course easily workaround this by simple calling gersemi twice, but still would be nice if one could coming both arguments and only do one call.
The text was updated successfully, but these errors were encountered: