3 ms·
Did you add Microsoft's Pyright[0] extension as well? It works hand-in-hand with the Python extension and makes VS Code a fantastic Python editor IMO. You may
by eddyg 6y ago
Did you add Microsoft's Pyright[0] extension as well?
It works hand-in-hand with the Python extension and makes VS Code a fantastic Python editor IMO. You may want to set pyright.disableLanguageServices in settings since there is some overlap in the Pyright and Python extensions that can result in duplicate results. (I'm not sure if you lose any Pyright features when you do this though...)
[0] https://marketplace.visualstudio.com/items?itemName=ms-pyright.pyright https://marketplace.visualstudio.com/items?itemName=ms-pyrig...
- _bxg1 6y agoNo, I didn't know about that one; the base one has MyPy and Pylint integration so I assumed it was the best version of each that they planned on implementing. I wonder why they would break out the "good version" into a separate extension.
- eddyg 6y agoI've always found pylint to be pretty useless... see for example https://lukeplant.me.uk/blog/posts/pylint-false-positives/ https://lukeplant.me.uk/blog/posts/pylint-false-positives/ I always pip install flake8 in my venvs and the standard Python extension can also use that just fine: "python.linting.pylintEnabled": false, "python.linting.flake8Enabled": true,
- _bxg1 6y agoIt's what we use at my workplace; not my call to make
- _bxg1 6y agoJust tried Pyright and it's incredible. Wow; why in the world don't they include this functionality in the regular extension? Thanks so much!