mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[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.
This commit is contained in:
3
manage
3
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 $?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user