-
Notifications
You must be signed in to change notification settings - Fork 218
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
Ask ruff
to autofix Python lint errors, where possible
#5903
Conversation
I don't think there was a reason, I think there were no group headings at first, then someone added them just for CI but didn't want to make the regular output more verbose. The script only did clang-format and pylint at first, with very minimal output, but has grown to call a whole bunch of things, so I agree that having the headings now makes a lot of sense. |
ci_checks_fix_ruff@80111 aka 20240110.6 vs main ewma over 20 builds from 79836 to 80102 Click to see tablemain
ci_checks_fix_ruff
|
For some errors that ruff spots, such as unused includes, it will print an error along the lines of "I could have tried to fix this automatically, if you'd given me the
--fix
arg". It's odd-to-annoying ifthat appears when we have passed the-f[ix]
arg to ourci-checks
wrapper!So the wrapper's
fix
mode now enables ruff'sfix
mode, as it does with similar tools.Also, because we have mixed verbosity of the tools called from this wrapper, I've modified it to always print group headings. There might be a reason this was disabled, that I've forgotten? But I think it makes the output far more readable.