myint / pyformat

Formats Python code to follow a consistent style
https://pypi.python.org/pypi/pyformat
94 stars 10 forks source link

Remove imports and variables #6

Closed grahamlyons closed 7 years ago

grahamlyons commented 7 years ago

pyformat does a lovely job of wrapping autoflake to make changes recommended by a linter. autoflake allows unused imports and variables to be removed, but the required flags aren't passed by pyformat.

This adds the ability, in "aggressive" mode, to request that all unused imports (not just standard library) and variables be removed (by autoflake).

grahamlyons commented 7 years ago

Updated, and spelling mistakes corrected.

myint commented 7 years ago

Thanks!

grahamlyons commented 7 years ago

Thanks for merging this, @myint. When do you release to PyPI?

myint commented 7 years ago

Released: https://pypi.python.org/pypi/pyformat/0.7

grahamlyons commented 7 years ago

Brillo. Thank you and happy New Year.