Skip to content

Unable to export to single virtualenv & if I even should?? #18704

Answered by p-baum
p-baum asked this question in Q&A
Discussion options

You must be logged in to vote

So I switched to version 2.16.0rc0 and simply added the tools I want (pylint, black, isort) to my requirements.txt and

pants generate-lockfiles --resolve=python-default
pants export --py-resolve-format=symlinked_immutable_virtualenv --resolve=python-default

set dist/export/python/virtualenvs/python-default/3.10.10/bin/python as Interpreter

and vscode linting and black formatting is working. "Sort Imports" however is not. Running the fmt goal does however sort the imports.

for my sanity's sake I will sort them with the fmt goal for now. I would of course be happy to hear suggestions on how I might get this working in vscode.

Replies: 8 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@benjyw
Comment options

benjyw Apr 9, 2023
Maintainer Sponsor

Comment options

You must be logged in to vote
1 reply
@benjyw
Comment options

benjyw Apr 9, 2023
Maintainer Sponsor

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@benjyw
Comment options

benjyw Apr 9, 2023
Maintainer Sponsor

@benjyw
Comment options

benjyw Apr 9, 2023
Maintainer Sponsor

@p-baum
Comment options

Comment options

benjyw
Apr 9, 2023
Maintainer Sponsor

You must be logged in to vote
2 replies
@p-baum
Comment options

@benjyw
Comment options

benjyw Apr 10, 2023
Maintainer Sponsor

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@p-baum
Comment options

@p-baum
Comment options

@dijonkitchen
Comment options

@p-baum
Comment options

@p-baum
Comment options

Answer selected by p-baum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants