initial commit
This commit is contained in:
18
template/.vscode/extensions.json
vendored
Normal file
18
template/.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
|
||||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
|
||||
|
||||
// List of extensions which should be recommended for users of this workspace.
|
||||
"recommendations": [
|
||||
"ms-vscode-remote.remote-wsl", // WSL
|
||||
"ms-python.python", // Python
|
||||
"ms-azuretools.vscode-docker", // Docker
|
||||
"tamasfe.even-better-toml", // Even Better TOML
|
||||
"redhat.vscode-yaml", // Yaml plugin
|
||||
"ms-vscode.makefile-tools", // Makefile plugin
|
||||
"ms-python.mypy-type-checker", // mypy extension
|
||||
"charliermarsh.ruff" // Python linter & formatter
|
||||
],
|
||||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
|
||||
"unwantedRecommendations": []
|
||||
}
|
||||
45
template/.vscode/launch.json.jinja
vendored
Normal file
45
template/.vscode/launch.json.jinja
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
// 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: Current File",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
},
|
||||
{
|
||||
"name": "Python: Run Main with args",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"module": "{{ package_name }}.main",
|
||||
"args": ["-w", "world"],
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
},
|
||||
{
|
||||
// This example launch-config promtps for arguments.
|
||||
// You can tinker with it to specifically ask for arguments you have defined.
|
||||
// To do so, create apropriate inputs and reference them here.
|
||||
"name": "Python: Main, prompt for args",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"module": "{{ package_name }}.main",
|
||||
"args": ["${input:args}"],
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
},
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "args",
|
||||
"type":"promptString",
|
||||
"description": "Arguments for main",
|
||||
"default": "-w word"
|
||||
},
|
||||
]
|
||||
}
|
||||
24
template/.vscode/settings.json
vendored
Normal file
24
template/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"python.testing.pytestEnabled": false,
|
||||
"python.testing.unittestEnabled": true,
|
||||
"python.linting.mypyEnabled": true,
|
||||
"python.testing.unittestArgs": [
|
||||
"-v",
|
||||
"-s",
|
||||
".",
|
||||
"-p",
|
||||
"test*.py"
|
||||
],
|
||||
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
|
||||
"python.envFile": "${workspaceFolder}/.env",
|
||||
"python.analysis.ignore": ["*"],
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "charliermarsh.ruff",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll": "explicit",
|
||||
}
|
||||
},
|
||||
"python.terminal.activateEnvironment": true,
|
||||
"python.terminal.activateEnvInCurrentTerminal": true
|
||||
}
|
||||
Reference in New Issue
Block a user