From b302407d5825e034fbe88ff31ba206aa18b1b06f Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Fri, 7 Jun 2024 12:18:35 +0200 Subject: [PATCH] feat: vscode --- .gitignore | 2 +- .vscode/launch.json | 21 +++++++++++++++++++++ .vscode/run_script.py | 3 +++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/run_script.py diff --git a/.gitignore b/.gitignore index 5d381cc..72d7a7c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] -*$py.class +*$$py.class # C extensions *.so diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..9c291d6 --- /dev/null +++ b/.vscode/launch.json @@ -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", + } + ] +} \ No newline at end of file diff --git a/.vscode/run_script.py b/.vscode/run_script.py new file mode 100644 index 0000000..bb849fc --- /dev/null +++ b/.vscode/run_script.py @@ -0,0 +1,3 @@ +from $REPO_NAME_SNAKE.__main__ import cli + +cli()