-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
Migrate to another code formatter? #2218
Comments
Personally, I've made the move to ruff which covers almost all of blue's functionality with the one notable exception, it's handling of right hanging comments. I don't intend to maintain blue, but instead help ruff along to full blue parity. |
Alright, I see that @grantjenks has moved sortedcontainers to ruff as well, that sums it up I guess. |
I usually use use black in other projects, but I have nothing against using ruff. @vytas7 do you think it could make sense to try each and post here the commits so that we can look at what change they would introduce? IIRC black can be configured to not convert Don't know about what options ruff has, but I gather it's much more than just a code formatter, so it may have more config knobs to tune |
Yeah, I'll try to create a prototype with Ideally it should introduce zero code changes against |
You should be able to configure ruff to be compatible with black or blue, or anything in between. Like I mentioned earlier, the only thing lacking for me at the moment is right hanging comment line up, and there's an open ticket on that issue. |
While
blue
is awesome since it is better tuned for our needs out of the box, and I just 💙blue
, it seems that it is stuck onflake8
v4.x, and it hasn't been updated in two years.@grantjenks @warsaw If you intend to carry on with
blue
, we'll likely try to keep it, but otherwise we might need to look for alternatives. "Back in Black", or maybe ruff?The text was updated successfully, but these errors were encountered: