未验证 提交 fece00d0 编写于 作者: A Aurelius84 提交者: GitHub

[Tools]Add autoflake pre-commit hook to remove unused-imports/var (#47455)

* [Tools]Add autoflake pre-commit hook to remove unused-imports/var

* add more args test=document_fix
上级 e6a6b0fc
......@@ -111,3 +111,14 @@ repos:
hooks:
- id: cmakelint
args: [--config=./tools/codestyle/.cmakelintrc]
- repo: https://github.com/PyCQA/autoflake
rev: v1.7.7
hooks:
- id: autoflake
args:
- --in-place
- --remove-all-unused-imports
- --ignore-pass-after-docstring
- --ignore-init-module-imports
- --exclude=python/paddle/fluid/[!t]**,python/paddle/fluid/tra**
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册