Browse Source

[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 <markus.heiser@darmarit.de>
Markus Heiser 3 years ago
parent
commit
87c8c5fd1b
2 changed files with 7 additions and 2 deletions
  1. 1 1
      .gitignore
  2. 6 1
      pyrightconfig.json

+ 1 - 1
.gitignore

@@ -1,4 +1,4 @@
-# to sync with .dockerignore
+# to sync with .dockerignore & pyrightconfig.json
 
 *.pyc
 */*.pyc

+ 6 - 1
pyrightconfig.json

@@ -1,4 +1,9 @@
 {
     "venvPath": "local",
-    "venv": "py3"
+    "venv": "py3",
+    "include": [
+        "searx",
+        "searxng_extra",
+        "tests"
+    ]
 }