summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-20 09:11:37 +0100
committerMartin Fischer <martin@push-f.com>2022-01-23 08:00:39 +0100
commit6d701d2fea07198807351c7c4856001c0f1ebffb (patch)
tree9304d54d6ee9c9e7e28f11fd32a39e91ee6e8126 /manage
parent96450b17d4304a740c0af934cbb841de67178d94 (diff)
[fix] ensure that test.pyright installs pyright
nodejs.ensure only sets up NVM if there isn't a system-wide installation of Node that matches our NODE_MINIMUM_VERSION. The ubuntu image in the CI comes with an up to date node version, so pyright from .nvm_packages is never installed. This commit fixes this by introducing a package.json file.
Diffstat (limited to 'manage')
-rwxr-xr-xmanage3
1 files changed, 2 insertions, 1 deletions
diff --git a/manage b/manage
index aec3906d..45853de3 100755
--- a/manage
+++ b/manage
@@ -687,9 +687,10 @@ test.pylint() {
test.pyright() {
build_msg TEST "[pyright] static type check of python sources"
nodejs.ensure
+ npm install
# We run Pyright in the virtual environment because Pyright
# executes "python" to determine the Python version.
- pyenv.cmd pyright -p pyrightconfig-ci.json
+ pyenv.cmd npx --no-install pyright -p pyrightconfig-ci.json
dump_return $?
}