Skip to content

Commit

Permalink
Add vscode setting to simplify local vscode develop (#484)
Browse files Browse the repository at this point in the history
* Add vscode setting to simplify local vscode develop

* Add golang test discovery
  • Loading branch information
wolvever authored Aug 21, 2024
1 parent 6ac8f79 commit cd9e250
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .env_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# rename this file to .env

APPBUILDER_TOKEN=your-token
APPBUILDER_TOKEN_V2=your-token
BAIDU_VDB_API_KEY=your-token
INSTANCE_ID=your-token
DATASET_ID=your-token
APPBUILDER_TOKEN_DOC_FORMAT=your-token
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// 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 Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"python.testing.unittestArgs": [
"-v",
"-s",
"./appbuilder",
"-p",
"test*.py"
],
"python.testing.unittestEnabled": true,
"python.envFile": "${workspaceFolder}/.env",
"go.testFlags": [
"-v"
],
"go.testEnvFile": "${workspaceFolder}/.env",
"go.toolsEnvVars": {
"GOPATH": "${workspaceFolder}/go",
}
}

0 comments on commit cd9e250

Please sign in to comment.