-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
bugmypy got something wrongmypy got something wrongtopic-configurationConfiguration files and flagsConfiguration files and flags
Description
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/*]
.
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-configurationConfiguration files and flagsConfiguration files and flags