feat: vscode

This commit is contained in:
Hazel 2024-06-07 12:18:35 +02:00
parent 73ee5bb77b
commit b302407d58
3 changed files with 25 additions and 1 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
*$$py.class
# C extensions
*.so

21
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,21 @@
{
// 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"
},
{
"name": "Python Debugger: $REPO_NAME_TITLE",
"type": "debugpy",
"request": "launch", // run the module
"program": "$${workspaceFolder}/.vscode/run_script.py",
}
]
}

3
.vscode/run_script.py vendored Normal file
View File

@ -0,0 +1,3 @@
from $REPO_NAME_SNAKE.__main__ import cli
cli()