Browse Source

Feat: add vscode settings

dk 1 year ago
parent
commit
d6c44714c0
3 changed files with 39 additions and 1 deletions
  1. 0 1
      .gitignore
  2. 27 0
      .vscode/launch.json
  3. 12 0
      .vscode/settings.json

+ 0 - 1
.gitignore

@@ -1,6 +1,5 @@
 *.db
 .pytest_cache
-.vscode
 # Byte-compiled / optimized / DLL files
 __pycache__/
 *.py[cod]

+ 27 - 0
.vscode/launch.json

@@ -0,0 +1,27 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Python: Streamlit",
+            "type": "python",
+            "request": "launch",
+            "module": "streamlit",
+            "cwd": "${workspaceFolder}/backend",
+            "args": ["run", "main.py"],
+            "justMyCode": true
+        },
+        {
+            "name": "Python: Debug Tests",
+            "type": "python",
+            "request": "launch",
+            "program": "${file}",
+            "purpose": ["debug-test"],
+            "console": "integratedTerminal",
+            "cwd": "${workspaceFolder}/backend",
+            "justMyCode": false,
+        }
+    ]
+}

+ 12 - 0
.vscode/settings.json

@@ -0,0 +1,12 @@
+{
+    "python.testing.cwd": "${workspaceFolder}/backend",
+    "python.testing.unittestArgs": [
+        "-v",
+        "-s",
+        "tests",
+        "-p",
+        "test*.py",
+    ],
+    "python.testing.pytestEnabled": false,
+    "python.testing.unittestEnabled": true
+}