Open Hi-Angel opened 3 years ago
I'm facing the same issue, I think pyls-mypy
should:
I'm going to work on this, I will probably implement 2 before 1, as the valid mypy config files are well specified in their documentation: mypy.ini
, .mypy.ini
, setup.cfg
.
I'm facing the same issue, I think
pyls-mypy
should:
- Allow mypy config file to be specified in pyls config.
- If config is not provided try to autodetect a mypy config file relative to the file being parsed.
- In other cases continue as today.
I'm going to work on this, I will probably implement 2 before 1, as the valid mypy config files are well specified in their documentation:
mypy.ini
,.mypy.ini
,setup.cfg
.
Hi! Turned out, loading a .mypy.ini
was implemented in 2019 in this PR. Unfortunately, the repo is apparently unmaintained, there's no one around to merge a PR.
Hi! Turned out, loading a
.mypy.ini
was implemented in 2019 in this PR. Unfortunately, the repo is apparently unmaintained, there's no one around to merge a PR.
Thanks for letting me know! I was just getting started with this. I will take that PR as a starting point and test it locally.
@tomv564 would you have enough time for PR merges and PyPI releases? If not would you consider transferring ownership of the package in PyPI so we can issue new releases?
@haplo @Hi-Angel This repo has been forked and is maintained with this feature at https://github.com/Richardk2n/mypy-ls
Excuse me if it already exists, by from my searching and reading the README I come to conclusion it isn't.
The usecase I'm trying to solve is that I have a file hierarchy as follows:
When I open
sub_module.py
which importsmy_module.py
, I get manyCannot find implementation or library stub for module named 'my_module'
for all modules that are in the parent dir. As I understand, the problem comes down topyls-mypy
needing some config with the list of files, which is probably.mypy.ini
. So probably some option is needed, so users could point out pyls-mypy to that configuration file.