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

mypy_command and daemon mode #62

Open
rcapobianco-sony opened this issue Oct 25, 2021 · 3 comments
Open

mypy_command and daemon mode #62

rcapobianco-sony opened this issue Oct 25, 2021 · 3 comments

Comments

@rcapobianco-sony
Copy link

Hello, I've been trying to change the mypy command to a python script I have worked on, but this apparently fails (it keeps calling mypy3). I have additionally tried mypy_use_deamon set to True, and mypy just stops working, as if it was not in the list of checkers. I guess something silently fails.

@msherry
Copy link
Owner

msherry commented Oct 25, 2021

Hi there! Thank you for the report!

Can you include a little more information, so that it might be possible to debug this?

  • What have you tried to change the mypy command to? How did you do this?
  • What is the script that you are trying to use as a mypy command?
  • mypy_use_deamon contains a typo, hopefully that's just in this report :)
  • What do you mean it stops working? What results do you see, vs. what do you expect to see?

@rcapobianco-sony
Copy link
Author

rcapobianco-sony commented Oct 25, 2021

Hi, thanks for the quick reply. I have just changed the command to a mypy.py script that internally executes mypy with some specific params, nothing exceptional really. The typo is not there in the .pycheckers that I am using:

Version with script

[DEFAULT]
checkers = flake8, mypy3
flake8_config_file = /home/.../.flake8
mypy_command = /home/.../mypy.py
mypy_config_file = /home/.../setup.cfg
debug = True

Version with daemon

[DEFAULT]
checkers = flake8, mypy3
flake8_config_file = /home/.../.flake8
mypy_command = dmypy
mypy_config_file = /home/.../setup.cfg
mypy_use_daemon = True
debug = True

In daemon mode, I was expecting to see some mypy errors (as I see in the non daemon version, which are generated however using the --incremental flag, that I'm trying to disable). However, just nothing appears. Also, with the debug flag, it seems like mypy is just ignored.

@rcapobianco-sony
Copy link
Author

Hi @msherry, did you have any time to look into this? Thanks.

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

No branches or pull requests

2 participants