flake8-coding icon indicating copy to clipboard operation
flake8-coding copied to clipboard

Empty `__init__.py` files are ignored

Open sobolevn opened this issue 7 years ago • 2 comments

Thanks for this plugin. It is really useful!

We have configured it like so:

accept-encodings = utf-8

But, when creating empty __init__.py file and running flake8 check, there is no error. Magic comment is missing from __init__.py.

So, this is a bug report.

sobolevn avatar Jul 15 '18 10:07 sobolevn

I think magic comment is not needed for empty files because it does not have any content. I did it intentionally.

tk0miya avatar Jul 22 '18 11:07 tk0miya

So, can we make it configurable?

sobolevn avatar Jul 22 '18 19:07 sobolevn