Skip to content

pyright setup #374

@schwehr

Description

@schwehr

pyright is in scripts/pyright, but it's not elsewhere. It should be in requirements-dev.txt, yes? But it doesn't seem to be in pypi?

And while looking at the pyright script, I notice that it's a bash script that uses which. Better to use the bash-builtin of type -p pyright

find . -type f | egrep -v '.git|ve/|mypy' | xargs grep pyright | egrep -i -v 'copyright'
grep: ./docs/_build/doctrees/environment.pickle: binary file matches
./scripts/pyright:PATH_TO_PYRIGHT=`which pyright`
./scripts/pyright:# If we can't find pyright, install it.
./scripts/pyright:echo "Checking pyright exists..."
./scripts/pyright:    echo "...installing pyright"
./scripts/pyright:    ${SUDO} npm install -g pyright
./scripts/pyright:    echo "Checking pyright version..."
./scripts/pyright:    CURRENT=`pyright --version | cut -d' ' -f2`
./scripts/pyright:    REMOTE=`npm info pyright version`
./scripts/pyright:        echo "...new version of pyright found, upgrading."
./scripts/pyright:        ${SUDO} npm upgrade -g pyright
./scripts/pyright:pyright "$@"
./scripts/test:        scripts/pyright pystac tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions