Skip to content

~ is not working in mypy.ini/cache_dir #6508

Closed
@jolaf

Description

@jolaf

I'd like to create a unified mypy cache for all my projects and store it in my home directory.

Moreover, I'd like other developers, as well as CI scripts, to do the same - storing cache in THEIR home directories on their local machines.

For that, I specify in mypy.ini:

[mypy]
cache_dir=~/.mypy_cache

But that's not working as mypy creates directory ~ in the current directory instead of creating .mypy_cache in my home directory.

I'm using mypy 0.670 from pip on Ubuntu.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions