From e24d43f835cb8b8cd1b4490dd4f3b8227927fce0 Mon Sep 17 00:00:00 2001 From: Martin Rippin Date: Fri, 26 Jan 2024 16:06:48 +0100 Subject: [PATCH 1/2] chore: add devcontainer --- .devcontainer/devcontainer.json | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d87cd4e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,39 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/python +{ + "name": "Python 3", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:0-3.11", + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + "settings": {}, + "extensions": [ + "streetsidesoftware.code-spell-checker" + ] + } + }, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [9000], + + // Use 'portsAttributes' to set default properties for specific forwarded ports. + // More info: https://containers.dev/implementors/json_reference/#port-attributes + "portsAttributes": { + "9000": { + "label": "Hello Remote World", + "onAutoForward": "notify" + } + }, + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "pip install -r requirements.txt -r requirements-test.txt" + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} \ No newline at end of file From ee3a4eaf3203fe759d02d49f88e89ae7e6e3f878 Mon Sep 17 00:00:00 2001 From: Martin Rippin Date: Fri, 26 Jan 2024 15:20:52 +0000 Subject: [PATCH 2/2] chore: add requirements files for dev setup --- requirements-test.txt | 1 + requirements.txt | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 requirements-test.txt create mode 100644 requirements.txt diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..f16ee69 --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1 @@ +pytest==7.4.3 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4ddc64e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +click==8.1.7 +python-docx==1.1.0 +python-pptx==0.6.23 +xlrd==2.0.1 +xlutils==2.0.0