changeset 2196:5ee5e17a3fd3

help vscode pytest runner work with pdm
author drewp@bigasterisk.com
date Sun, 21 May 2023 17:00:25 -0700
parents f13124540331
children 698858173947
files .vscode/settings.json bin/pytest
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.vscode/settings.json	Sun May 21 16:43:42 2023 -0700
+++ b/.vscode/settings.json	Sun May 21 17:00:25 2023 -0700
@@ -6,5 +6,8 @@
   "toTypeScript.fixUnreachableCode": false,
   "toTypeScript.fixUnusedLabel": false,
   "toTypeScript.forgottenThisPropertyAccess": false,
-  "python.formatting.provider": "yapf"
+  "python.formatting.provider": "yapf",
+  "python.testing.pytestEnabled": true,
+  "python.testing.pytestPath": "./bin/pytest",
+  "python.analysis.enablePytestSupport": true
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/pytest	Sun May 21 17:00:25 2023 -0700
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec pdm run pytest "$@"