Skip to content
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][CINN] ruff F401 and F403 in python/cinn #55182

Merged
merged 15 commits into from
Jul 7, 2023

Conversation

Liyulingyue
Copy link
Contributor

PR types

Others

PR changes

Others

Description

#54953 case 12

@paddle-bot
Copy link

paddle-bot bot commented Jul 5, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Void,
make_const,
)
from .core_api.common import * # noqa: F401
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这行本来也不会报 F401 吧?只会报 F403 吧?

不过没关系,之后要展开这个 * 的,这个 PR 就不要改了

from .core_api.common import Type # noqa: F401
from .core_api.common import UInt # noqa: F401
from .core_api.common import Void # noqa: F401
from .core_api.common import make_const # noqa: F401
Copy link
Member

@SigureMo SigureMo Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里我记得可以直接这样写:

from a import (  # noqa: F401
    b,
    c,
    d,
)

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 6, 2023
@SigureMo SigureMo closed this Jul 6, 2023
@SigureMo SigureMo reopened this Jul 6, 2023
@SigureMo
Copy link
Member

SigureMo commented Jul 6, 2023

奇了个怪怪,PR-CI-Inference 明明过了但一直 Pending,@Liyulingyue rerun 一下吧

@paddle-bot
Copy link

paddle-bot bot commented Jul 6, 2023

很抱歉,经过我们的反复讨论,你的PR暂未达到合入标准,请阅读飞桨原生算子开发规范,你可以重新提交新的PR,我们先将此PR关闭,感谢你的贡献。
Sorry to inform you that through our discussion, your PR fails to meet the merging standard (Reference: Paddle Custom Operator Design Doc). You can also submit an new one. Thank you.

@SigureMo SigureMo changed the title [CodeStyle][CINN] ruff F401 in python/cinn [CodeStyle][CINN] ruff F401 and F403 in python/cinn Jul 7, 2023
@SigureMo
Copy link
Member

SigureMo commented Jul 7, 2023

@Liyulingyue 麻烦 rerun 下挂掉的 CI

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SigureMo SigureMo merged commit 32bc8b8 into PaddlePaddle:develop Jul 7, 2023
@Liyulingyue Liyulingyue deleted the ruff4 branch July 8, 2023 01:46
cqulilujia pushed a commit to cqulilujia/Paddle that referenced this pull request Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants