rhythmic-glass-66959
07/22/2022, 1:35 PMlockfile
for each tool and use the export
command to allow my editor (VSCode) to use the same version
of the tool that Pants uses for workflows. This works great for most of the tools, except for pylint
.
VSCode complaints that it is unable to import 3rd party packages (pylint(import-error)
). Take note that Pants lint
command works as expected. I suspect this is because 3rd party packages are installed in python-default
venv and not in pylint
tool venv. Anybody has this problem? I know it is not a Pants problem per say, but more an IDE integration issue...sparse-lifeguard-95737
07/22/2022, 2:10 PMpylint
, but haven’t managed to solve it 😕happy-kitchen-89482
07/22/2022, 2:55 PMsparse-lifeguard-95737
07/22/2022, 2:56 PMhappy-kitchen-89482
07/22/2022, 2:56 PMsparse-lifeguard-95737
07/22/2022, 2:57 PMsys.path
to include the other exported venvs, but couldn’t get it to workhappy-kitchen-89482
07/22/2022, 2:57 PMsparse-lifeguard-95737
07/22/2022, 2:59 PM--init-hook
arg/flaghappy-kitchen-89482
07/22/2022, 2:59 PM./pants export --type=virtualenv --lockfiles=python-default,pylint
would create a single venv with both those lockfiles in it (and if a conflict arose it would... I dunno, re-resolve, or let one win arbitrarily)sparse-lifeguard-95737
07/22/2022, 3:01 PMexport
rhythmic-glass-66959
07/22/2022, 3:01 PMpylint doesn’t see the 3rdparty deps on the PYTHONPATH and flags them as bad importsHi Benjy, yes, the former...
happy-kitchen-89482
07/22/2022, 3:02 PM