Skip to content

Commit cda130a

Browse files
committed
chore: remove unneeded pytest args, add comments
1 parent b7abf0f commit cda130a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"runArgs": [
5454
"--env-file",
5555
".devcontainer/.env"
56-
// "--userns=keep-id", // Uncomment if using podman instead of docker.
56+
// "--userns=keep-id", // Uncomment if using podman instead of docker. (remove after next vscode-remote extension release: https://github.com/microsoft/vscode-remote-release/issues/10798#issuecomment-2826767753)
5757
// "--device=nvidia.com/gpu=all", // Uncomment if using podman instead of docker.
5858
],
5959
"initializeCommand": [".devcontainer/scripts/init"],
@@ -72,16 +72,14 @@
7272
"${containerWorkspaceFolder}/invokeai/frontend/web"
7373
],
7474
"python.analysis.extraPaths": [
75-
"/home/node/invokeai",
75+
"/home/node/invokeai/nodes",
7676
"/home/node/.venv/lib",
7777
"${containerWorkspaceFolder}"
7878
],
7979
"python.testing.promptToConfigure": false,
8080
"python.testing.pytestEnabled": true,
81-
"python.testing.pytestArgs": [
82-
"--no-cov" // prevents interference from code-coverage when running tests within the debugger
83-
],
84-
"files.autoSaveWhenNoErrors": true,
81+
"python.testing.pytestArgs": ["--tb=line", "--no-header"], // makes the output of pytest more human readable and parseable by vscode
82+
"files.autoSaveWhenNoErrors": true, // prevents auto-saving when there are errors in the code, makes hot-reloading more reliable by not flooding the tooling with errors which tend to break it.
8583
"editor.formatOnSave": true,
8684
"editor.codeActionsOnSave": {
8785
"source.organizeImports": "always"

0 commit comments

Comments
 (0)