From 5ce309183788ebca1c501380bb72d73a02405d96 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 18 Jan 2022 15:38:17 +0100 Subject: [enh] add pyrightconfig.json By adding this file Pyright automatically detects the packages from our Python virtual environment. This can be tested by using the Pyright extension for VS Code or by running npx pyright. --- pyrightconfig.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pyrightconfig.json (limited to 'pyrightconfig.json') diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 000000000..33e94f253 --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,4 @@ +{ + "venvPath": "local", + "venv": "py3" +} -- cgit v1.2.3 From 87c8c5fd1bc7bf855d74ae37af947b292c262873 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 19 Jan 2022 10:08:24 +0100 Subject: [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 --- pyrightconfig.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pyrightconfig.json') diff --git a/pyrightconfig.json b/pyrightconfig.json index 33e94f253..56573c75f 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -1,4 +1,9 @@ { "venvPath": "local", - "venv": "py3" + "venv": "py3", + "include": [ + "searx", + "searxng_extra", + "tests" + ] } -- cgit v1.2.3