autoflake

autoflake

TLDR

Remove unused variables from a single file and display the diff

>_ autoflake --remove-unused-variables [file.py]
copy

Remove unused imports from multiple files and display the diffs

>_ autoflake --remove-all-unused-imports [file1.py] [file2.py] [file3.py]
copy

Remove unused variables from a file, overwriting the file

>_ autoflake --remove-unused-variables --in-place [file.py]
copy

Remove unused variables recursively from all files in a directory, overwriting each file

>_ autoflake --remove-unused-variables --in-place --recursive [path/to/directory]
copy

Copied to clipboard
free 100$ digital ocean credit