-
Notifications
You must be signed in to change notification settings - Fork 55
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
Support ruff format
as a formatter
#521
Comments
ruff is a very nice linter, I use it in all my new projects now, but it's not a replacement for black, which is a code reformatter. |
Thanks for the response! |
Oh right, I only used linters in ruff so far! |
@clintonsteiner I'll definitely be looking into this. I love ruff's performance! |
Would using ruff be a replacement or an optional setting? |
@akaihola up to you but I'd probably do as an optional replacement for an iteration via setting an env variable (if you want it always on) or command line arg. Would you mind assisting me with a little layout of the 3 files you'd start with when making this change as well as any other development tips? |
I would suggest being able to specify the formatter. We wouldn't be using Ruff (for various reasons) and being able to use darker with multiple formatters (even just the two) would make more sense. I see this is already suggested in #304. Happy to help out on this if need be. |
I've run ruff using |
ruff format
as a formatter
Any plans to begin using
ruff format
instead of black for code formatting?Ruff is designed to be a drop in replacement for black and should provide a nice performance boost
@akaihola:
The text was updated successfully, but these errors were encountered: