Open mrkeuz opened 2 years ago
I like this idea. We can modify the plugin to require installing these stubs for your device type similarly to what we already do for dependencies for communication with your device.
cc @hlovatt you might be interested in this as a stubs contributor.
Sorry it took me so long to respond to this. It's a great idea. Took me a while battling PyPI to get something that works!
You can now install from PyPI:
pip install --upgrade micropython-typesheds
python -m micropython-typesheds <destination-directory>
for recent stubs : https://github.com/Josverl/micropython-stubs or Micropython stub packages on PyPI
According PEP-0561, stubs can be distributed via pip.
It would be good to publish stub packages to pip for easy installation just via
pip
. There is another team that tried to support similar versions of stubs micropython-stubs but in auto-generated manner.I have created similar issue #123. It would be good to join forces and extract stubs to common project, for ability deploying them to PyPi and support by community together. It brings ability to use this stubs in linters, and other tools. Also, this allows for involving more community contributions, in my humble opinion.
Sincerely to JetBrains team and contributors! 🚀