autoflake: update path (#10083)

This commit is contained in:
K.B.Dharun Krishna
2023-05-01 10:02:00 +05:30
committed by GitHub
parent e9995a8249
commit 1c2154bf75
5 changed files with 15 additions and 15 deletions

View File

@@ -5,15 +5,15 @@
- Remove unused variables from a single file and display the diff:
`autoflake --remove-unused-variables {{file.py}}`
`autoflake --remove-unused-variables {{path/to/file.py}}`
- Remove unused imports from multiple files and display the diffs:
`autoflake --remove-all-unused-imports {{file1.py}} {{file2.py}} {{file3.py}}`
`autoflake --remove-all-unused-imports {{path/to/file1.py path/to/file2.py ...}}`
- Remove unused variables from a file, overwriting the file:
`autoflake --remove-unused-variables --in-place {{file.py}}`
`autoflake --remove-unused-variables --in-place {{path/to/file.py}}`
- Remove unused variables recursively from all files in a directory, overwriting each file: