With https://peps.python.org/pep-0420/ - released with python 3.3 it is no longer required to create an empty __init__.py file.
However Coverage still skips folders without an __init__.py
https://github.com/nedbat/coveragepy/blob/0aa1070a2c9a99e10b7790b9a6a40a631ba5514e/coverage/files.py#L409
This causes unexpected results for the total coverage as valid python code is not included in the total coverage!
rel: pytest-dev/pytest-cov#88 (comment)
With https://peps.python.org/pep-0420/ - released with python 3.3 it is no longer required to create an empty
__init__.pyfile.However Coverage still skips folders without an
__init__.pyhttps://github.com/nedbat/coveragepy/blob/0aa1070a2c9a99e10b7790b9a6a40a631ba5514e/coverage/files.py#L409
This causes unexpected results for the total coverage as valid python code is not included in the total coverage!
rel: pytest-dev/pytest-cov#88 (comment)