Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions templates/vsc/python/default-bot/.gitignore.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules/
.pnp
.pnp.js

# testing
/coverage

# production
/build
/dist

# misc
.DS_Store
*.log
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.tmp

# Runtime data
pids
logs

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.local
.env.dev
.env.staging
.env.prod

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Subscription validation event payload files
validationEvents.json

# Local environment variables
.env.*.user

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
ENV/
env.bak/
venv.bak/
.pytest_cache/
.coverage
htmlcov/
.tox/
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.mypy_cache/
.dmypy.json
dmypy.json

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# IDE
.idea/
.vscode/settings.json
*.swp
*.swo

# OS
.DS_Store
Thumbs.db
8 changes: 8 additions & 0 deletions templates/vsc/python/default-bot/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"TeamsDevApp.ms-teams-vscode-extension",
"ms-python.python",
"ms-python.flake8",
"ms-python.black-formatter"
]
}
153 changes: 153 additions & 0 deletions templates/vsc/python/default-bot/.vscode/launch.json.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Remote (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "3-remote",
"order": 1
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "3-remote",
"order": 2
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Python: Remote Attach"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Python: Remote Attach"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Python: Remote Attach",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote (Desktop)",
"type": "python",
"request": "launch",
"preLaunchTask": "Start App in Desktop Client (Remote)",
"presentation": {
"group": "3-remote",
"order": 3
},
"internalConsoleOptions": "neverOpen",
}
],
"compounds": [
{
"name": "Debug in Teams (Edge)",
"configurations": [
"Launch App (Edge)",
"Python: Remote Attach"
],
"preLaunchTask": "Start App Locally",
"presentation": {
{{#enableTestToolByDefault}}
"group": "2-local",
{{/enableTestToolByDefault}}
{{^enableTestToolByDefault}}
"group": "1-local",
{{/enableTestToolByDefault}}
"order": 1
},
"stopAll": true
},
{
"name": "Debug in Teams (Chrome)",
"configurations": [
"Launch App (Chrome)",
"Python: Remote Attach"
],
"preLaunchTask": "Start App Locally",
"presentation": {
{{#enableTestToolByDefault}}
"group": "2-local",
{{/enableTestToolByDefault}}
{{^enableTestToolByDefault}}
"group": "1-local",
{{/enableTestToolByDefault}}
"order": 2
},
"stopAll": true
},
{
"name": "Debug in Teams (Desktop)",
"configurations": [
"Python: Remote Attach"
],
"preLaunchTask": "Start App in Desktop Client",
"presentation": {
"group": "2-local",
"order": 3
},
"stopAll": true
},
{
"name": "Debug in Microsoft 365 Agents Playground",
"configurations": [
"Python: Remote Attach"
],
"preLaunchTask": "Start App in Microsoft 365 Agents Playground",
"presentation": {
{{#enableTestToolByDefault}}
"group": "1-local",
{{/enableTestToolByDefault}}
{{^enableTestToolByDefault}}
"group": "2-local",
{{/enableTestToolByDefault}}
"order": 1
},
"stopAll": true
}
]
}
16 changes: 16 additions & 0 deletions templates/vsc/python/default-bot/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"debug.onTaskErrors": "abort",
"json.schemas": [
{
"fileMatch": [
"/aad.*.json"
],
"schema": {}
}
],
"python.defaultInterpreterPath": "python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.formatting.provider": "black"
}
Loading