diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 48f8539..7b3ad04 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,8 +9,8 @@ // } // }, "containerEnv": { - "PIP_INDEX_URL": "https://dv.masara.eu/repository/pypi-group/simple" - // alebo "/simple", ak to Nexus vyžaduje + "PIP_INDEX_URL": "https://dv.masara.eu/repository/pypi-group/simple", + "PIP_ROOT_USER_ACTION": "ignore" }, "remoteEnv": { "DOCKER_BUILDKIT": "1" @@ -29,16 +29,14 @@ "ms-azuretools.vscode-docker" ], "settings": { - "[python]": { - "editor.defaultFormatter": "ms-python.python" - }, "python.formatting.provider": "black", "python.analysis.extraPaths": [ "/app" ], "editor.formatOnSave": true, - "python.defaultInterpreterPath": "/workspace/.venv/bin/python", + // "python.defaultInterpreterPath": "/workspace/.venv/bin/python", "python.terminal.activateEnvironment": true, + "python.defaultInterpreterPath": ".venv/bin/python", // nechceme obnovovať staré porty z predchádzajúcich session "remote.restoreForwardedPorts": false, // auto-forward portov len na základe outputu, nie procesov diff --git a/.devcontainer/post_create.sh b/.devcontainer/post_create.sh index be6d1df..de96a24 100644 --- a/.devcontainer/post_create.sh +++ b/.devcontainer/post_create.sh @@ -17,7 +17,7 @@ if [ ! -d "$VENV_PATH" ]; then else echo "Používam existujúce virtuálne prostredie..." # shellcheck disable=SC1090 - source "$VENV_PATH/bin/activate" + # source "$VENV_PATH/bin/activate" fi # Inštalácia závislostí, ak existuje requirements.txt @@ -28,5 +28,3 @@ else echo "requirements.txt nenájdený – preskakujem inštaláciu závislostí." fi -echo "Nastavujem Git credential helper..." -git config --global credential.helper manager-core