Skip to content

Use a specific working directory to run dmypy in #89

@utybo

Description

@utybo

I'm working on a monorepo where all Python files, including the mypy.ini, are in a specific subfolder (e.g. mypythonstuff).

While I can use mypy.targets and mypy.configFile options to select the subfolder in question, I don't think it's working: it seems that the mypy.ini's package-specific settings are completely ignored (maybe because mypy considers the full path to these packages to be mypythonstuff.foo.bar instead of foo.bar 🤔 )

An easy workaround would be to just open the mypythonstuff folder in a separate VS Code window, or as a workspace folder, but that is somewhat more annoying than just being able to set dmypy's current working directory.

(this is similar to #82, but for a single folder)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions