Replies: 2 comments
-
Converting to a discussion since this is a question, not a bug report. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Found the solution here: https://notes.billmill.org/programming/python/pyright_use_virtualenv.html [tool.pyright]
venvPath='.'
venv=".venv"
exclude=['.venv'] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pyright works correctly when using it in a PDM script by defining the script in the pyproject.toml and setting pyright as dev dependency
When using Pyright by itself or as language server for Helix the import statements cause errors.
(reportMissingImports)
Trying to fix it in the pyproject.toml like this did not work:
The venv created by PDM is in the root of the project with the path
.venv
and the following directories and file inside:bin include lib pyvenv.cfg
How do I setup the configuration correctly?
Propably related to #2767 and pdm#804
Beta Was this translation helpful? Give feedback.
All reactions