-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
fix: show what has changed when running hatch fmt #1567
base: master
Are you sure you want to change the base?
Conversation
Does the formatter also have such an option? |
No, because it's not made of (public?) rules like the linter is. |
Sorry I didn't test what the output looks like with that flag but my assumption was that it would show the diff in addition to fixing, is not the case? I can't check right now. |
Before:
After:
|
Interesting, I wonder if there is a feature request for the formatter that essentially just outputs the diff in addition to performing it. |
For some reason, Ruff just makes changes without telling the user why it's changing things by default. Adding
--show-fixes
prints a nice summary of what's changed.