Skip to content

All Poetry dependencies missing #3291

Discussion options

You must be logged in to vote

It is what it is! The joy of running a project that includes tons of non-standard dependencies.

I was able to make it work with the code above, and by limiting my import checks to just one tool, I only had to do PRE_COMMANDS for pyright (disabling pylint). That's my recommendation for anyone else who comes across this thread:

  1. Export your poetry dependencies to a requirements.txt file
  2. Select a single tool to do import checking (in my case, pyright)
  3. Disable import checking in all other tools via config
  4. Install the requirements.txt via pip in the PRE_COMMANDS for the selected virtual environment

That way, you're only installing your dependencies one extra time.

Thanks again.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@andrewvaughan
Comment options

Answer selected by andrewvaughan
@nvuillam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants