From 9797a210e22d2a7b173aef9d438f476f95726ab2 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 15 Jul 2023 14:59:07 -0500 Subject: [PATCH] feat: Add devcontainer config (#2250) * Add devcontainer config using the pyhf Dockerfile. - c.f. https://containers.dev/ - Motivated by Sarah Kaiser's SciPy 2023 lightning talk. --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..1640f58a37 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +{ + "name": "pyhf-devcontainer", + "build": { + "context": "..", + "dockerfile": "../docker/Dockerfile" + }, + "features": { + "ghcr.io/devcontainers/features/git:1": {} + }, + + "customizations": { + "vscode": { + "settings": { + "python.defaultInterpreterPath": "/opt/venv/bin/python" + }, + "extensions": [ + "ms-python.python", + "ms-toolsai.jupyter" + ] + } + } +}