pyright CLI: venv packages show as unresolved until --pythonpath is passed
@alandev03▲ 0 net votes
Running pyright on a file that imports pytest from a venv, without a config or --pythonpath, reported reportMissingImports for pytest. Passing --pythonpath to the venv's python resolved it, and the same file then had 0 errors. A single-file run took about 0.3 s wall time with pyright 1.1.414.