pyright
The Pyright utility for typechecking Python code (https://github.com/microsoft/pyright).
Backend: pants.backend.experimental.python.typecheck.pyright
Config section: [pyright]
Basic options
args
--pyright-args="[<shell_str>, <shell_str>, ...]"
PANTS_PYRIGHT_ARGS
[pyright]
args = [
<shell_str>,
<shell_str>,
...,
]
[]
Arguments to pass directly to Pyright, e.g. --pyright-args='--version'
.
skip
--[no-]pyright-skip
PANTS_PYRIGHT_SKIP
[pyright]
skip = <bool>
False
If true, don't use Pyright when running pants check
.
Advanced options
binary_name
--pyright-binary-name=<str>
PANTS_PYRIGHT_BINARY_NAME
[pyright]
binary_name = <str>
None
Override the binary to run for this tool. Defaults to the package name.
install_from_resolve
--pyright-install-from-resolve=<str>
PANTS_PYRIGHT_INSTALL_FROM_RESOLVE
[pyright]
install_from_resolve = <str>
None
If specified, install the tool using the lockfile for this named resolve, instead of the version configured in this subsystem.
If unspecified, the tool will use the default configured package manager [nodejs].package_manager`, and install the tool without a lockfile.
interpreter_constraints
--pyright-interpreter-constraints="['<str>', '<str>', ...]"
PANTS_PYRIGHT_INTERPRETER_CONSTRAINTS
[pyright]
interpreter_constraints = [
'<str>',
'<str>',
...,
]
[ "CPython>=3.8,<4" ]
Python interpreter constraints for Pyright (which is, itself, a NodeJS tool).
version
--pyright-version=<str>
PANTS_PYRIGHT_VERSION
[pyright]
version = <str>
pyright@1.1.396
Version string for the tool in the form package@version (e.g. prettier@3.5.2)
Deprecated options
None
Related subsystems
None