diff options
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | manage | 2 | ||||
-rw-r--r-- | pyrightconfig-ci.json | 10 |
3 files changed, 13 insertions, 3 deletions
@@ -50,8 +50,8 @@ search.checker.%: install $(Q)./manage pyenv.cmd searx-checker -v "$(subst _, ,$(patsubst search.checker.%,%,$@))" PHONY += test ci.test test.shell -ci.test: test.yamllint test.black test.pylint test.unit test.robot test.rst -test: test.yamllint test.black test.pylint test.unit test.robot test.rst test.shell +ci.test: test.yamllint test.black test.pyright test.pylint test.unit test.robot test.rst +test: test.yamllint test.black test.pyright test.pylint test.unit test.robot test.rst test.shell test.shell: $(Q)shellcheck -x -s dash \ dockerfiles/docker-entrypoint.sh @@ -689,7 +689,7 @@ test.pyright() { nodejs.ensure # We run Pyright in the virtual environment because Pyright # executes "python" to determine the Python version. - pyenv.cmd pyright + pyenv.cmd pyright -p pyrightconfig-ci.json dump_return $? } diff --git a/pyrightconfig-ci.json b/pyrightconfig-ci.json new file mode 100644 index 000000000..9082b0790 --- /dev/null +++ b/pyrightconfig-ci.json @@ -0,0 +1,10 @@ +{ + "venvPath": "local", + "venv": "py3", + "include": [ + "searx", + "searxng_extra", + "tests" + ], + "typeCheckingMode": "off" +} |