Skip to content

[CodeStyle][F401] remove unused imports in fluid/tests/custom_* - #46717

Merged
luotao1 merged 6 commits into
PaddlePaddle:developfrom
cattidea:F401/fix/fluid-tests-custom_xxx
Oct 10, 2022
Merged

luotao1 merged 6 commits into
PaddlePaddle:developfrom
cattidea:F401/fix/fluid-tests-custom_xxx

Conversation

@SigureMo

@SigureMo SigureMo commented Oct 2, 2022 •

Copy link
Copy Markdown
Collaborator

PR types

Others

PR changes

Others

Describe

修复 F401 unused import 存量 python 代码

  • python/paddle/fluid/tests/custom_runtime/
  • python/paddle/fluid/tests/custom_op/
  • python/paddle/fluid/tests/custom_kernel/
autoflake --in-place --remove-all-unused-imports --ignore-pass-after-docstring --exclude=__init__.py --recursive python/paddle/fluid/tests/custom_runtime/
autoflake --in-place --remove-all-unused-imports --ignore-pass-after-docstring --exclude=__init__.py --recursive python/paddle/fluid/tests/custom_op/
autoflake --in-place --remove-all-unused-imports --ignore-pass-after-docstring --exclude=__init__.py --recursive python/paddle/fluid/tests/custom_kernel/

python/paddle/fluid/tests/custom_runtime/test_collective_process_group_xccl.py 添加了 noqa 以避免删除部分 import

Related links

@paddle-bot

paddle-bot Bot commented Oct 2, 2022

Copy link
Copy Markdown

你的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.

@paddle-bot paddle-bot Bot added contributor External developers status: proposed labels Oct 2, 2022
@SigureMo SigureMo changed the title [WIP][CodeStyle][F401] remove unused imports in fluid/custom_* [WIP][CodeStyle][F401] remove unused imports in fluid/tests/custom_* Oct 2, 2022
@SigureMo SigureMo changed the title [WIP][CodeStyle][F401] remove unused imports in fluid/tests/custom_* [CodeStyle][F401] remove unused imports in fluid/tests/custom_* Oct 3, 2022
@luotao1 luotao1 self-assigned this Oct 10, 2022
@luotao1
luotao1 merged commit 9f83d3c into PaddlePaddle:develop Oct 10, 2022
@SigureMo
SigureMo deleted the F401/fix/fluid-tests-custom_xxx branch October 10, 2022 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[F401] python/paddle/fluid/tests/custom_op [F401] python/paddle/fluid/tests/custom_kernel + python/paddle/fluid/tests/custom_runtime

2 participants