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

Global configuration file merged with project configuration file #5949

Open
NickeZ opened this issue Nov 25, 2018 · 0 comments
Open

Global configuration file merged with project configuration file #5949

NickeZ opened this issue Nov 25, 2018 · 0 comments

Comments

@NickeZ
Copy link

NickeZ commented Nov 25, 2018

I'm trying to use the python language server, pyls-mypy and mypy to asynchronously show me type hints in vim.

This is a bit related to #4542 and #5241.

Immediately I had the problem of Cannot find module named 'a.b.c' which sent me down a rabbit whole trying to figure out what to do. It seems like the answer is --ignore-missing-imports. Since I'm not invoking mypy myself I would like to put this information in a config file. So I put it in ~/.mypy.ini and the error message does not go away. Finally I figured out that setup.cfg is shadowing my configuration file, and yes, putting the [mypy] block in the setup.cfg finally let's me get rid of the warning.

So my question is. What is the proposed solution to get rid of this warning for all my python projects? My preferred solution would be that any project-local configuration file is merged with my personal configuration file (like other tools would do, e.g. git and pylint).

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

No branches or pull requests

2 participants