Turn on remove-all-unused-imports in for autoflake - #414
Conversation
|
@zliang-akamai This PR looks great! I do have one concern: given this is a package intended to be consumed by users would this accidentally break any indirect imports? Most of the dropped imports seem pretty insignificant but it might be worth double-checking just in case 🙂 |
|
@lgarber-akamai Thanks for the reminder! I think all imports it removed is not relevant to the module it's in. For example, The right way to import I doubt there is any indirect import like that, and even that's the case, they can easily fix it by changing the import path. Autoflake would ignore (not to remove) any unused import in But we can definitely mark it as a breaking change as a head up to the users. |
Sounds good to me! I think this is a very positive change, we just need to make sure we communicate it well 👍 |
jriddle-linode
left a comment
There was a problem hiding this comment.
LGTM +1 to communication.
📝 Description
To cleanup unused imports
✔️ How to Test