can override pyright config from cli
https://github.com/jakebailey/pyright-action/blob/ea37d1c67b7fc90ab9ab4571114e203b313152a2/src/main.ts#L223-L229
I just want to say in my situation, the venv path can be overridden from cli to config file. Here's is my case https://github.com/check-phat-nguoi/cpn-cli/actions/runs/12862210294/job/35856777126
Weird, I checked the pyright code and even at the time I added this code, venvpath did not emit a warning like typeshedpath does. I'll have to stare at it harder though to double check that the flag can actually make it all the way down.
I will warn you though that you probably shouldn't be using venvpath at all. Actually activating an environment is a lot easier. And setting it in a config of all places is just asking for trouble; anyone who wants to work on the codebase but didn't put the venv in the exact same location will have problems. Especially in your case with a relative path venv set in a config!
Thank you for the advise. I'm not really familiar with python setup, I just try to learn how to set things up ^^
The venv path in the config is for the bigger repo which wraps small repos including the repo in my previous comment (monorepo). Actually I'm quite struggle in setting monorepo with uv and pyright. Do you have any advise for me? Thank you by the way.
I don't have any specific advice; I'm not aware of any package manager which implements monorepo support.
In your case, I would probably try and use a single venv for this; if it's a monorepo, that implies all packages need to work together anyhow.