Suppressing imported but unused warnings from flake

By | April 28, 2016

If you are a good python dev, surely you follow PEP8 coding style guidelines, and surely you have installed the flake8 plugin to constantly reminding yourself to format your code properly, and surely you have valid cases that you import stuff but not used, eg. and surely your IDE will annoy the fuck out of you for not using the stuff you imported, here is how you tell your IDE to “shut the fuck up and I did it on purpose”:

from .your_module import unused_stuff  # noqa


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.