11/09/2022, 2:21 PM
Hello! I’m using VSCode and I am using the pants flake8 extra_requirements field to bring in flake8 plugins and I would like my vscode to use the same flake8 and plugins when doing IDE level linting. The problem I’m running into is that when I run
./pants export
it is creating a bunch of virtual environments, and I can only point my IDE at one of them at a time. How does one solve this problem and have all my tools and configs synced between vscode and pants?


11/09/2022, 2:40 PM
I’m not a pants expert but i believe for flake8 you can use the “flake8Path” setting to change which virtual env is used.
this is a setting in VSCode


11/09/2022, 2:45 PM
Oh, nvm, I had a flake8 extension installed in vscode that was overwriting my selection. Uninstalling this vscode extension solved the problem and now VScode can see and use the binary from pex. Thanks!
Now I just need to figure out a way to do the same with isort…