autoflake

Removes unused imports and unused variables in Python code

Description

By default, autoflake only removes unused imports for modules that are part of the standard library. (Other modules may have side effects that make them unsafe to remove automatically.) Removal of unused variables is also disabled by default.

Also removes useless 'pass' statements.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/PyCQA/autoflake


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install autoflake