-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
bump ruff to 0.0.272 and update config #54449
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -749,7 +749,7 @@ def max_unpool1d( | |||
This API implements max unpooling 1d opereation. | |||
`max_unpool1d` accepts the output of `max_pool1d` as input, | |||
including the indices of the maximum value and calculate the partial inverse. | |||
All non-maximum values are set to zero. |
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.
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) | ||
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) | ||
at org.apache.hadoop.fs.FsShell.main(FsShell.java:2353) | ||
""" # fmt: off, avoid remove tabs in string |
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.
这个文件之前迁移到 test 下时被格式化掉了,原本前面的 tab 变成了 4 个空格,为了避免再出现类似问题,直接将其替换为等价的 \t
PR types
Others
PR changes
Others
Description
introducing ruff
community#412 计划升级 Ruff 到 0.0.272(升级后部分 rule (UP031、UP032、B018)检查自动修复力度更高了,因此对相关文件进行了自动修复,少数手动修复)PCard-66962