-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[CodeStyle] black -> ruff format migration - part 21
#74675
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
| low=0, high=255, size=[height, width] | ||
| ), | ||
| yield ( | ||
| np.random.uniform(low=0, high=255, size=[height, width]) |
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.
这个对吗?我咋感觉少了个逗号,这是手动改的还是自动改的
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.
手动改的,改错了
格式化后:
yield (
(
np.random.uniform(
low=0, high=255, size=[height, width]
)
),
)| label, | ||
| True, | ||
| axis, | ||
| ignore_index, # soft_label, |
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.
| ignore_index, # soft_label, | |
| ignore_index, |
| label, | ||
| True, | ||
| axis, | ||
| ignore_index, # soft_label, |
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.
| ignore_index, # soft_label, | |
| ignore_index, |
| ( | ||
| 1e-2, | ||
| 1e-2, | ||
| ), |
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.
| ( | |
| 1e-2, | |
| 1e-2, | |
| ), | |
| (1e-2, 1e-2), |
PR Category
User Experience
PR Types
Not User Facing
Description
使用性能更好,格式化效果更佳的 ruff format 替代 black 作为新的 formatter,由于我们很早就已经集成了 ruff lint,因此只是减少依赖而不会增加依赖