From 3889dd5db01885b7d54b172d1b95bb0c37cf7390 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 31 May 2023 17:48:44 +0000 Subject: [PATCH 1/2] create devcontainer --- .devcontainer/Dockerfile | 5 +++++ .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ .devcontainer/post-create.sh | 6 ++++++ 3 files changed, 44 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100755 .devcontainer/post-create.sh diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..795b125 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +ARG VARIANT="bullseye" +FROM mcr.microsoft.com/vscode/devcontainers/base:${VARIANT} + +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ba55dee --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "name": "Debian", + "build": { + "dockerfile": "Dockerfile", + "args": { "VARIANT": "bullseye" } + }, + "features": { + "ghcr.io/devcontainers/features/github-cli:1": { + "installDirectlyFromGitHubRelease": true, + "version": "latest" + }, + "ghcr.io/devcontainers/features/python:1": { + "installTools": true, + "version": "3.10" + }, + "ghcr.io/devcontainers-contrib/features/poetry:2": { + "version": "latest" + } + }, + + "customizations": { + "vscode": { + "extensions": [ + "ms-azuretools.vscode-docker" + ] + } + }, + + "postCreateCommand": ".devcontainer/post-create.sh", + + "remoteUser": "vscode", + "containerUser": "vscode" +} diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh new file mode 100755 index 0000000..8724b8c --- /dev/null +++ b/.devcontainer/post-create.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -eo pipefail +set -u + +pipx install algokit +pipx upgrade algokit From df43fb967919f098b9ab618e59d7649288e79e61 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 31 May 2023 17:50:12 +0000 Subject: [PATCH 2/2] beginning root level changes * Without knowing if this should be a monorepo these changes made are minor and unopinionated --- .editorconfig | 20 ++++++++++++++++++++ .vscode/extensions.json | 23 +++++++++++++++++++++++ .vscode/settings.json | 3 +++ 3 files changed, 46 insertions(+) create mode 100644 .editorconfig create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..968f744 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +continuation_indent_size = 2 +indent_size = 2 + +[*.{html,xml}] +indent_style = spaces +indent_size = 4 + +[*.py] +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..b0ccedd --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,23 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + "bungcip.better-toml", + "charliermarsh.ruff", + "editorconfig.editorconfig", + "emeraldwalk.runonsave", + "esbenp.prettier-vscode", + "gitpod.gitpod-desktop", + "gitpod.gitpod-remote-ssh", + "github.vscode-pull-request-github", + "matangover.mypy", + "mhutchie.git-graph", + "redhat.vscode-xml", + "redhat.vscode-yaml", + "runarsf.platform-settings", + "zainchen.json" + ], + // List of extensions recommended by VS Code that should not be recommended for users of this workspace. + "unwantedRecommendations": [] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1729341 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": true, +} \ No newline at end of file