Closed Jessseee closed 4 months ago
Ah yes, I was debating where to put it, but with that explanation, it would indeed make more sense to put it in the install command.
@FoamyGuy Moved the installation of the stubs packages to commands.py
and reverted any changes I made to backends.py
. Sorry for spamming the CI, I had a small fight with your pre-commit pipeline. 😅
Implementation of feature request #140, this is something I would really like to see as a PyCharm user.
As described in the PyCharm + CircuitPython setup guide there are packages available on PyPi that contain stubs for libraries from the Adafruit Library Bundle, these packages help give the IDE you are using context for your CircuitPython code so that code hinting can work properly.
Instead of having to manually install these stubs after installing packages using CircUp, this PR adds the
--stubs
flag to thecircup install
command which enables a step in the installation process to try to install the available stubs package usingpip
.This would currently only work for libraries in the Adafruit CircuitPython Bundle, as I don't see an easy way to find out whether there are stubs packages on PyPi for any other CircuitPython libraries.