diff --git a/wallpaper_changer/.vscode/launch.json b/wallpaper_changer/.vscode/launch.json index bd36467..46ecb96 100644 --- a/wallpaper_changer/.vscode/launch.json +++ b/wallpaper_changer/.vscode/launch.json @@ -9,7 +9,19 @@ "args": [ "--log-level", "TRACE", - "-x","--disable-encryption" + "-x","--replace" + ], + "console": "integratedTerminal", + "cwd": "${workspaceFolder}", + "justMyCode": false + }, + { + "name": "wallpaper_changer: tests", + "type": "debugpy", + "request": "launch", + "program": "${workspaceFolder}/tests/run_tests.py", + "args": [ + "all" ], "console": "integratedTerminal", "cwd": "${workspaceFolder}", diff --git a/wallpaper_changer/.vscode/settings.json b/wallpaper_changer/.vscode/settings.json index fbd8c57..6a24f6f 100644 --- a/wallpaper_changer/.vscode/settings.json +++ b/wallpaper_changer/.vscode/settings.json @@ -1,13 +1,24 @@ { - "python.defaultInterpreterPath": "/home/lucas/scripts/.venv/bin/python", + "python.defaultInterpreterPath": "/home/lucas/scripts/wallpaper_changer/.venv/bin/python", "python-envs.pythonProjects": [ { "path": "main.py", "envManager": "ms-python.python:venv", "packageManager": "ms-python.python:pip" + }, + { + "path": ".", + "envManager": "ms-python.python:venv", + "packageManager": "ms-python.python:pip" } ], "editor.tabSize": 4, "editor.insertSpaces": true, - "editor.detectIndentation": false + "editor.detectIndentation": false, + "editor.quickSuggestions": { + "other": true, + "comments": false, + "strings": false + }, + "editor.suggestOnTriggerCharacters": true } \ No newline at end of file diff --git a/wallpaper_changer/.vscode/tasks.json b/wallpaper_changer/.vscode/tasks.json new file mode 100644 index 0000000..741209e --- /dev/null +++ b/wallpaper_changer/.vscode/tasks.json @@ -0,0 +1,26 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build wallpaperchanger binary", + "type": "shell", + "command": "${command:python.interpreterPath}", + "args": [ + "-m", + "PyInstaller", + "--clean", + "--onefile", + "--paths", + "src", + "--name", + "wallpaper_changer", + "main.py" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + } + ] +} \ No newline at end of file