未验证 提交 2d97316f 编写于 作者: N Nyakku Shigure 提交者: GitHub

[CodeStyle][F401] replace autoflake with ruff (#51529)

* [CodeStyle] initial ruff config

* update F401 config

* [CodeStyle][F401] replace autoflake with ruff

* empty commit; test=document_fix

* restore unfixable; test=document_fix
上级 3ecf46b7
......@@ -68,16 +68,6 @@ repos:
hooks:
- id: flake8
args: ["--config=.flake8"]
- 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**
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.254
hooks:
......
......@@ -29,6 +29,9 @@ exclude = [
]
target-version = "py37"
select = [
# Pyflakes
"F401",
# Pyupgrade
"UP001",
"UP003",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册