Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document cache directory usage #84

Open
zero323 opened this issue Oct 18, 2021 · 0 comments
Open

Document cache directory usage #84

zero323 opened this issue Oct 18, 2021 · 0 comments

Comments

@zero323
Copy link
Contributor

zero323 commented Oct 18, 2021

When tests are executed with typecheck_in_new_subprocess and disable_cache is False, --cache-dir is passed directly to mypy call as a path relative to root directory.

This means that the following are ignored

  • MYPY_CACHE_DIRin execution environment orenv` block of the test case.
  • cache_dir in mypy configuration.

are ignored.

This behavior is confusing, so it might be a good idea to document it.

In a long run, YamlTestItem should check if any of these are provided, and omit --cache-dir in such cases (this would be useful for example with remote cache).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant