diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a24ba18e..69c1ac5d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -8,21 +8,28 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] ENV SHELL=/bin/bash \ PATH=$PATH:/opt/gopath/bin:/opt/go/bin +# Install linux packages +RUN apt-get update \ + && apt-get install -y --no-install-recommends git-lfs \ + && apt-get install -y --no-install-recommends nano \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + # Install nodejs (includes npm) RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \ - && apt-get install -y --no-install-recommends nodejs=14.3.0-1nodesource1 \ + && apt-get install -y --no-install-recommends nodejs \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Install golang WORKDIR /opt/go -RUN curl -sOL https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz \ - && tar -C /opt -xf go1.14.2.linux-amd64.tar.gz \ - && rm go1.14.2.linux-amd64.tar.gz \ +RUN curl -sOL https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz \ + && tar -C /opt -xf go1.14.4.linux-amd64.tar.gz \ + && rm go1.14.4.linux-amd64.tar.gz \ && bin/go env -w GOPATH=/opt/gopath GO111MODULE=on # Install hadolint -RUN curl -sL https://github.com/hadolint/hadolint/releases/download/v1.17.6/hadolint-Linux-x86_64 \ +RUN curl -sL https://github.com/hadolint/hadolint/releases/download/v1.18.0/hadolint-Linux-x86_64 \ -o /usr/local/bin/hadolint \ && chmod +x /usr/local/bin/hadolint @@ -32,7 +39,10 @@ COPY requirements.txt ./ # Install modules, requirements, dependencies, packages, libraries etc. RUN \ # Install node modules - npm install -g markdownlint-cli@0.23.1 \ + npm install -g \ + markdownlint-cli@0.23.2 \ + @commitlint/cli@9.0.1 \ + @commitlint/config-conventional@9.0.1 \ # Install golang modules && go get -u github.com/client9/misspell/cmd/misspell@v0.3.4 \ # Install python dependencies diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a3585190..3b334075 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,6 +7,11 @@ }, "extensions": [ "ms-python.python", - "ms-azuretools.vscode-docker" - ] + "ms-azuretools.vscode-docker", + "editorconfig.editorconfig", + "littlefoxteam.vscode-python-test-adapter", + "magicstack.magicpython", + "visualstudioexptteam.vscodeintellicode" + ], + "postCreateCommand": "pip install --upgrade pip && pip install -r requirements.txt" } diff --git a/.devcontainer/requirements.txt b/.devcontainer/requirements.txt index fef7b9a0..2fb573d4 100644 --- a/.devcontainer/requirements.txt +++ b/.devcontainer/requirements.txt @@ -1,5 +1,5 @@ aiohttp==3.6.2 -aioswitcher==1.2.0 +aioswitcher==1.2.1 asynctest==0.13.0 bandit==1.6.2 beautifulsoup4==4.9.1 diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 00000000..22537ae3 --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,3 @@ +--- +ignored: + - DL3008 diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..b4c9d7ee --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,14 @@ +{ + "recommendations": [ + "eamodio.gitlens", + "donjayamanne.githistory", + "davidanson.vscode-markdownlint", + "shardulm94.trailing-spaces", + "coenraads.bracket-pair-colorizer-2", + "oderwat.indent-rainbow", + "wakatime.vscode-wakatime", + "bierner.markdown-emoji", + "njpwerner.autodocstring", + "lextudio.restructuredtext" + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ebed5a46..8ac49893 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,8 +6,8 @@ "type": "shell", "command": "pip install -rrequirements.txt", "group": { - "kind": "build", - "isDefault": true + "kind": "build", + "isDefault": true } }, { @@ -24,8 +24,8 @@ "type": "shell", "command": "pytest -vs --cov --cov-config=.coveragerc", "group": { - "kind": "test", - "isDefault": true + "kind": "test", + "isDefault": true }, "dependsOn": ["Install build requirements"] }, @@ -97,4 +97,4 @@ "group": "test" } ] - } +}