autoflake: update path (#10083)
This commit is contained in:

committed by
GitHub

parent
e9995a8249
commit
1c2154bf75
@@ -5,15 +5,15 @@
|
||||
|
||||
- 移除指定文件中未使用的变量,并展示 diff:
|
||||
|
||||
`autoflake --remove-unused-variables {{文件.py}}`
|
||||
`autoflake --remove-unused-variables {{路径/到/文件.py}}`
|
||||
|
||||
- 移除多个文件中未使用的引入,并展示 diffs:
|
||||
|
||||
`autoflake --remove-all-unused-imports {{文件1.py}} {{文件2.py}} {{文件3.py}}`
|
||||
`autoflake --remove-all-unused-imports {{路径/到/文件1个.py 路径/到/文件2个.py ...}}`
|
||||
|
||||
- 移除未被使用的变量,并覆盖更新:
|
||||
|
||||
`autoflake --remove-unused-variables --in-place {{文件.py}}`
|
||||
`autoflake --remove-unused-variables --in-place {{路径/到/文件.py}}`
|
||||
|
||||
- 递归地移除指定文件夹下层所有文件中未使用的变量,并覆盖更新:
|
||||
|
||||
|
Reference in New Issue
Block a user