Sourcegraph fork of pyright focused on generating SCIP for python projects.
Project is primarily an addition to Pyright. At this time, there are no substantial changes to the pyright
library.
$ # Install scip-python
$ npm install -g @sourcegraph/scip-python
$ npm install @sourcegraph/scip-python
$ # NOTE: make sure to activate your virtual environment before running
$ scip-python index . --project-name $MY_PROJECT
$ # Make sure to point towards the sourcegraph instance you're interested in uploading to.
$ # more information at https://github.com/sourcegraph/src-cli
$ src lsif upload
{
"index_jobs": [
{
"indexer": "nikolaik/python-nodejs",
"local_steps": [
"curl -Lo lsif-typed https://github.com/sourcegraph/lsif-typescript/releases/download/v0.1.13/lsif-typed",
"chmod +x ./lsif-typed",
"npm install -g @sourcegraph/scip-python",
"scip-python index . --project-name my_project --project-version 0.1 --include my_project",
"./lsif-typed dump.lsif-typed > dump.lsif",
],
"indexer_args": [],
"steps": [],
"outfile": "",
"root": ""
}
],
"shared_steps": []
}