From 828937930f6f99095a7cdcd6bfefdaadb4c1d8f0 Mon Sep 17 00:00:00 2001 From: 3020772 <3020772@stud.hs-mannheim.de> Date: Sun, 14 Dec 2025 13:21:55 +0100 Subject: [PATCH] =?UTF-8?q?Vorbereitung=20f=C3=BCr=20PVL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/.devcontainer/Dockerfile | 2 + python/.devcontainer/devcontainer.json | 46 +++++++++++------- .../sum_calculator.cpython-311.pyc | Bin 0 -> 759 bytes ...um_calculator.cpython-311-pytest-9.0.2.pyc | Bin 0 -> 3690 bytes .../01_python_tooling/test_sum_calculator.py | 26 ---------- 5 files changed, 31 insertions(+), 43 deletions(-) create mode 100644 python/01_python_tooling/__pycache__/sum_calculator.cpython-311.pyc create mode 100644 python/01_python_tooling/__pycache__/test_sum_calculator.cpython-311-pytest-9.0.2.pyc delete mode 100644 python/01_python_tooling/test_sum_calculator.py diff --git a/python/.devcontainer/Dockerfile b/python/.devcontainer/Dockerfile index 7cf707e..eff9cf2 100644 --- a/python/.devcontainer/Dockerfile +++ b/python/.devcontainer/Dockerfile @@ -6,6 +6,8 @@ ARG USERNAME=vscode ARG USER_UID=1000 ARG USER_GID=$USER_UID +RUN pip install --no-cache-dir pytest black + RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME USER $USERNAME WORKDIR /workspace diff --git a/python/.devcontainer/devcontainer.json b/python/.devcontainer/devcontainer.json index ec8d953..5b115e6 100644 --- a/python/.devcontainer/devcontainer.json +++ b/python/.devcontainer/devcontainer.json @@ -1,19 +1,31 @@ { - "name": "Python 3.11 Dev Container", - "dockerFile": "Dockerfile", - "mounts": [ - "source=${localWorkspaceFolder},target=/workspace,type=bind" - ], - "settings": { - "python.linting.enabled": true, - "python.linting.pylintEnabled": true, - "python.formatting.provider": "black" - }, - "extensions": [ - "ms-python.python", - "ms-python.vscode-pylance" - ], - - "postCreateCommand": "pip install --upgrade pip && pip install pytest black", - "remoteUser": "vscode" + "name": "Python 3.11 Dev Container", + "image": "dev-test-image:latest", + //"dockerFile": "Dockerfile", + "mounts": [ + "source=${localWorkspaceFolder},target=/workspace,type=bind" + ], + "remoteUser": "vscode", + + "customizations": { + "vscode": { + "settings": { + // Testing: Pytest-Erkennung aktivieren + "python.testing.pytestEnabled": true, + "python.testing.pytestArgs": [ + "." + ], + + "python.linting.enabled": true, + "python.linting.pylintEnabled": true, + "python.formatting.provider": "black" + }, + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance" + ] + } + }, + + "postCreateCommand": "pip install --upgrade pip" } \ No newline at end of file diff --git a/python/01_python_tooling/__pycache__/sum_calculator.cpython-311.pyc b/python/01_python_tooling/__pycache__/sum_calculator.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ced54c8563b3b115f5ae43aad35edf1a11439c65 GIT binary patch literal 759 zcmZuv&1(}u6rb6TxJ}*CrbVo$xfIOd7RI)@Wd_tf9;V{ZMiHiT@ zEV+g<(+cLY8q^f$HhlyROo9iP|H1ds-~Er!n;Qe6kNZMTMQDJ}ls<-HOj8@!4^Tu)LYW5Kk2KeB-n@ zl!x+Ubv=4Hg$$G^y6zgbr|VZTguS&R*hSrFIm8b50qJd3S(7$A*n&mbY%>Ssl_uwn zvt-Y3sjerh9G;|mp$ltD3XBG!!xOo~Y>$6KEc>sR0&uN7aeXUv=pidXn0>dP3y_K! zt+=Rxj-=hOv>PupRgrWDisp0u2CzxQegFUf literal 0 HcmV?d00001 diff --git a/python/01_python_tooling/__pycache__/test_sum_calculator.cpython-311-pytest-9.0.2.pyc b/python/01_python_tooling/__pycache__/test_sum_calculator.cpython-311-pytest-9.0.2.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e12db6b9ba5f851cab07069470c52056724826db GIT binary patch literal 3690 zcmc&$&1>976xT@FPiI}?Bx~o;R;8q5v1@zd_@il@wuc%D#U)8kz6g0W>nPSr+mSYj zx4U3U43&mD!;wmeIf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