From 87c8c5fd1bc7bf855d74ae37af947b292c262873 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 19 Jan 2022 10:08:24 +0100 Subject: [PATCH] [fix] pyrightconfig.json include only dedicated folders in the test Without specifying folders to check, pyright will also scan files in folders like ./build, ./cache, ./.nvm and more. Signed-off-by: Markus Heiser --- .gitignore | 2 +- pyrightconfig.json | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index efea6c87..bacf9d7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# to sync with .dockerignore +# to sync with .dockerignore & pyrightconfig.json *.pyc */*.pyc diff --git a/pyrightconfig.json b/pyrightconfig.json index 33e94f25..56573c75 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -1,4 +1,9 @@ { "venvPath": "local", - "venv": "py3" + "venv": "py3", + "include": [ + "searx", + "searxng_extra", + "tests" + ] }