micropython stubs for linting
Posted: Mon Jan 14, 2019 4:59 pm
I'm using VScode to write MicroPython code. The linting and code completion is quite decent, but as there are quite a few differences between CPython and MicroPython, I think the linters could be better.
Is there a way for pylint to :
recognize the subset of classes / methods implemented versus CPython
In other words I'd like to prevent errors and warnings such as these:
I've looked at a promising approach by Thonny to extract module information and save that in module/APIstubs,
however that results in rather bare/sparse stubs, but that may be better than just ignoring everything.
I have also looked at options such as typeshed, or a way to have pylint consume the .rst files but I have not found anything there yet.
or has someone looked at adopting the gendoc script to generate these types of stubs ?
https://github.com/micropython/micropyt ... /gendoc.py
Is there a way for pylint to :
recognize the subset of classes / methods implemented versus CPython
In other words I'd like to prevent errors and warnings such as these:
I've looked at a promising approach by Thonny to extract module information and save that in module/APIstubs,
however that results in rather bare/sparse stubs, but that may be better than just ignoring everything.
I have also looked at options such as typeshed, or a way to have pylint consume the .rst files but I have not found anything there yet.
or has someone looked at adopting the gendoc script to generate these types of stubs ?
https://github.com/micropython/micropyt ... /gendoc.py