I would like to begin using Pyright with my team's projects. I have installed the Visual Studio Code plugin, and can see the type errors in my editor as I work. But I would like to be able to run it automatically as part of our test suite, including on our CI server, and a VS Code plugin can't do that. I need to install and use it as a standalone command-line tool.
Pyright's documentation said that it has a command-line interface, but the only installation and build instructions were for the Visual Studio Code extension, and installing that didn't add a pyright
executable:
$ pyright
-bash: pyright: command not found
How can I install and run Pyright on my Python project from the command-line?