-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[CodeStyle][task 11] enable Ruff F403 rule in python/paddle/base/layers/__init__.py
#57379
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,7 @@ ignore = [ | |
"UP031", | ||
"C408", | ||
"UP030", | ||
"F522", | ||
"F403", | ||
"B010", | ||
"PLR1722", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,7 @@ | |
# limitations under the License. | ||
|
||
from . import io | ||
from .io import * | ||
from . import math_op_patch | ||
from .math_op_patch import * | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个 PR 可以在 F401 合入后开展,可以考虑一个一个来过 CI,我们首先看一下是否有代码会用这里的重导出,我们可以搜索 甚至下面的 可以先尝试改这一个文件,然后看看是否能够通过 CI,之后再改其他文件,慢慢来,F403 本就不是很容易改的,甚至可以考虑拆成多个 PR 慢慢做 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. 这个 PR 是准备只做这一个文件嘛?是的话可以改一下标题 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是的是的,我改一下标题 |
||
from ..layer_helper import LayerHelper | ||
|
||
|
||
__all__ = [] | ||
|
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.
这里是因为解决冲突写错了?不过 F522 出现概率很小,这两天应该不会出现增量,这个 PR 就这样吧,下个 PR 把 F522 和 F403 一并删掉
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.
是,当时拉取完没改回去🤣,下个pr改回来~