Skip to content

<directory> is not a valid python package name #10515

Closed
@matthieudesprez

Description

@matthieudesprez

Migrating from 0.790 to 0.812, we are experiencing issues running mypy because we have an init.py file at the root of our project, and our project repository contains a dash in it's name.

I believe it comes from this PR #9614 which seems to change the way modules are crawled

Is there some option we can pass to prevent mypy to throw an error during this step ?

We are thinking about renaming the project root folder or moving all our code in a subfolder but any other solution would be appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions