Skip to content

0.800: Unable to configure subdirectories #10045

Open
@Dreamsorcerer

Description

@Dreamsorcerer

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

No one assigned

    Labels

    bugmypy got something wrongtopic-configurationConfiguration files and flags

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions