Removes unused imports and unused variables
autoflake
removes unused imports and unused variables from Python code as reported by pyflakes
.
By default, it only removes unused imports for modules that are part of the standard library. Removal of unused variables is also disabled by default. It also removes useless pass
statements.
Linter | Message | Location |
---|---|---|
No lint warnings ✓ |