-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
STY: Use ruff instead of black for formatting #56704
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how ruff seems to handle the typing ignore codes slightly differently than black:
- seems like they are ignored from the line length limit (no more running mypy again after formatting moves the ignore code around); and
- ruff seems to also prefer to split arguments across lines when multiple were previously covered by a single ignore comments (this makes it easier to know which argument is causing "troubles")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I've only taken a partial look, so not a full review, but from what I've seen this looks great. |
Thanks @mroeschke! (Merging quickly after you just rebased to avoid other PRs where ruff and black could potentially diverge.) |
* STY: Use ruff instead of black for formatting * mypy * move pylint * Remove trailing comma:
No description provided.