<#17557 pyright: support locking with version and ...
# github-notifications
q
#17557 pyright: support locking with version and lockfile Issue created by smelc At the moment
pants
doesn't support specifying `pyright`'s version. I tried specifying it as follows:
Copy code
backend_packages = [
  "pants.backend.experimental.python.typecheck.pyright",
  ...
]

[pyright]
version = "pyright==1.1.258"
lockfile = "pants_dir/3rdparty/pyright_lockfile.lock"
However this doesn't work:
Copy code
> PANTS_SHA=11b4fd412631c6315b474e49fe482dec1767cf29 ./pants check libs/wsi::
...
15:23:58.49 [ERROR] Invalid option 'lockfile' under [pyright] in /home/churlin/dev/kaiko-eng/pants.toml
15:23:58.49 [ERROR] Invalid option 'version' under [pyright] in /home/churlin/dev/kaiko-eng/pants.toml
15:23:58.49 [ERROR] Invalid config entries detected. See log for details on which entries to update or remove.
(Specify --no-verify-config to disable this check.)
This is a bummer because it makes it impossible to pin
pyright
version, reducing reproducibility of our CI setup 😞 Would it be possible to support
pyright
pinning? pantsbuild/pants
u