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-skipPANTS_PYRIGHT_SKIP[pyright]
skip = <bool>
FalseIf 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>
NoneOverride 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>
NoneIf 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,<3.15" ]
Python interpreter constraints for Pyright (which is, itself, a NodeJS tool).
version
--pyright-version=<str>PANTS_PYRIGHT_VERSION[pyright]
version = <str>
[email protected]Version string for the tool in the form package@version (e.g. [email protected])
Deprecated options
None
Related subsystems
None