A tool to remove unused imports and variables from Python code.
autoflake --remove-unused-variables {{file.py}}
autoflake --remove-all-unused-imports {{file1.py}} {{file2.py}} {{file3.py}}
autoflake --remove-unused-variables --in-place {{file.py}}
autoflake --remove-unused-variables --in-place --recursive {{path/to/directory}}