commit 9af56cb28842c013972a89c7bb3831151031c6cb Author: Sandro Eder <3016801@stud.hs-mannheim.de> Date: Tue Apr 21 15:36:17 2026 +0200 add devcontainer config for pr3 diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..7de4838 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,27 @@ +{ + "name": "HS Mannheim PR3 - Python 3", + "build": { + "dockerfile": "Dockerfile" + }, + "customizations": { + "vscode": { + "settings": { + // Python 3 als Standard im Container + "python.defaultInterpreterPath": "/usr/local/bin/python", + "python.terminal.activateEnvInSelectedTerminal": true, + "terminal.integrated.defaultProfile.linux": "bash" + }, + "extensions": [ + "ms-python.python", // Python Sprachunterstützung + "ms-python.vscode-pylance", // IntelliSense (Auto-Complete) + "ms-python.debugpy", // Debugger für PR3 Übungen + "njpwerner.autodocstring", // Hilft bei Docstrings (gut für Abgaben) + "eamodio.gitlens" // Git-Verlauf direkt im Code + ] + } + }, + // Installiert automatisch Abhängigkeiten + "postCreateCommand": "if [ -f requirements.txt ]; then pip install -r requirements.txt; fi", + + "remoteUser": "vscode" +} \ No newline at end of file