In Mypy 0.800, it now checks files in subdirectories without __init__.py files.
The problem is that the config still only works on modules containing __init__.py, meaning there is no way to change the config for these subdirectories.
e.g.
untyped-def errors have started appearing in test/foo/bar.py
Adding this to config has no effect:
[mypy-tests.*]
disallow_untyped_defs = False
This only works if tests/__init__.py and tests/foo/__init__.py are created.
Expected behaviour is that the above config will ignore the errors, or an alternative syntax is available to do so (e.g. [mypy-tests/*].
In Mypy 0.800, it now checks files in subdirectories without
__init__.pyfiles.The problem is that the config still only works on modules containing
__init__.py, meaning there is no way to change the config for these subdirectories.e.g.
untyped-def errors have started appearing in test/foo/bar.py
Adding this to config has no effect:
This only works if
tests/__init__.pyandtests/foo/__init__.pyare created.Expected behaviour is that the above config will ignore the errors, or an alternative syntax is available to do so (e.g.
[mypy-tests/*].