autoflake8
autoflake8 copied to clipboard
Allow to use as a Python package in addition to the standalone mode
isort
can be imported as a package and then work on the given file or code (see docs). It would be very convenient to have the similar feature for autoflake8
@metopa would an API similar to isort's be enough for you?
i.e.:
import autoflake8
autoflake8.file("pythonfile.py")
code = autoflake8.code("import a\nimport b\n\nprint(b.x)")
Yep 👌 Plus, all configuration can be specified as function parameters