Skip to content

MYPY_CONFIG_FILE_DIR doesn't work #169

@Yosshi999

Description

@Yosshi999

I want to use $MYPY_CONFIG_FILE_DIR because I don't rely on MYPYPATH environment.
However, pytest-mypy-plugins breaks this variable because the directory of .ini will be changed even when --mypy-same-process is activated.
(See

temp_dir = tempfile.TemporaryDirectory(prefix="pytest-mypy-", dir=self.root_directory)
)

I would appreciate it if you could parse ini before changing the directory or do you have any suggestion to refer to the path of my repository?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions