From 9f81b5d52180529272b092e7a2326e23a3d9625b Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Wed, 1 Jan 2025 01:47:05 -0500 Subject: [PATCH] update dev container --- .devcontainer/devcontainer.json | 39 ++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f460cd61..56d6d0cf 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,35 @@ { - "tasks": { - "test": "pytest -vr A tests -m \"not locale_specific\"", - "build": "pip install -r requirements.txt && pip install -r requirements-test.txt" - } -} \ No newline at end of file + "name": "Python 3", + "build": { + "dockerfile": "Dockerfile", + "context": "..", + "args": { + "VARIANT": "3.12" + } + }, + "settings": { + "terminal.integrated.shell.linux": "/bin/bash" + }, + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance" + ], + "postCreateCommand": "pip install -r requirements-test.txt", + "remoteUser": "vscode", + "features": { + "ghcr.io/devcontainers/features/python:1": { + "version": "3.12" + } + }, + "customizations": { + "vscode": { + "settings": { + "python.defaultInterpreterPath": "/usr/local/bin/python" + } + } + }, + "tasks": { + "test": "pytest -vr A tests -m \"not locale_specific\"", + "build": "pip install -r requirements.txt && pip install -r requirements-test.txt" + } +}