This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35717e0
commit b7bcf74
Showing
78 changed files
with
15,508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/python-3/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster | ||
ARG VARIANT="3.10-bullseye" | ||
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} | ||
|
||
# Poetry | ||
ARG POETRY_VERSION="none" | ||
RUN if [ "${POETRY_VERSION}" != "none" ]; then su vscode -c "umask 0002 && pip3 install poetry==${POETRY_VERSION}"; fi | ||
|
||
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image. | ||
# COPY requirements.txt /tmp/pip-tmp/ | ||
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \ | ||
# && rm -rf /tmp/pip-tmp | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
# [Optional] Uncomment this line to install global node packages. | ||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1 | ||
|
||
# Update locale settings | ||
RUN apt-get update && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get install -y \ | ||
locales && \ | ||
rm -r /var/lib/apt/lists/* | ||
|
||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
dpkg-reconfigure --frontend=noninteractive locales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"name": "obsidian-metadata", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "..", | ||
"args": { | ||
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6 | ||
// Append -bullseye or -buster to pin to an OS version. | ||
// Use -bullseye variants on local on arm64/Apple Silicon. | ||
"VARIANT": "3.10-bullseye", | ||
"POETRY_VERSION": "1.2.2" | ||
} | ||
}, | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"autoDocstring.startOnNewLine": true, | ||
"coverage-gutters.coverageFileNames": ["reports/coverage.xml"], | ||
"coverage-gutters.showGutterCoverage": false, | ||
"coverage-gutters.showLineCoverage": true, | ||
"coverage-gutters.showRulerCoverage": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true, | ||
"source.organizeImports": true | ||
}, | ||
"editor.rulers": [100], | ||
"python.analysis.completeFunctionParens": true, | ||
"python.formatting.provider": "black", | ||
"python.linting.enabled": true, | ||
"python.linting.mypyEnabled": true, | ||
"python.linting.mypyPath": "mypy", | ||
"python.linting.pylintEnabled": false, | ||
"python.terminal.activateEnvInCurrentTerminal": true, | ||
"python.terminal.activateEnvironment": false, | ||
"python.testing.pytestEnabled": true, | ||
"python.linting.mypyArgs": [ | ||
"--config-file", | ||
"pyproject.toml", | ||
"--exclude", | ||
"'tests/'" | ||
], | ||
"python.linting.ignorePatterns": [ | ||
".vscode/**/*.py", | ||
".venv/**/*.py" | ||
], | ||
"python.venvFolders": ["/home/vscode/.cache/pypoetry/virtualenvs"], | ||
"ruff.importStrategy": "fromEnvironment", | ||
"shellformat.path": "/home/vscode/.local/bin/shfmt", | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "/usr/bin/zsh" | ||
} | ||
} | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"bierner.markdown-preview-github-styles", | ||
"charliermarsh.ruff", | ||
"donjayamanne.githistory", | ||
"eamodio.gitlens", | ||
"fcrespo82.markdown-table-formatter", | ||
"foxundermoon.shell-format", | ||
"GitHub.copilot", | ||
"Gruntfuggly.todo-tree", | ||
"mhutchie.git-graph", | ||
"njpwerner.autodocstring", | ||
"oderwat.indent-rainbow", | ||
"redhat.vscode-yaml", | ||
"ryanluker.vscode-coverage-gutters", | ||
"samuelcolvin.jinjahtml", | ||
"shardulm94.trailing-spaces", | ||
"streetsidesoftware.code-spell-checker", | ||
"tamasfe.even-better-toml", | ||
"timonwong.shellcheck", | ||
"Tyriar.sort-lines", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"Chouzz.vscode-better-align", | ||
"yzhang.markdown-all-in-one" | ||
], | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:1": {}, | ||
"ghcr.io/devcontainers/features/git:1": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/yamllint:1": {}, | ||
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {} | ||
}, | ||
"remoteUser": "vscode", | ||
"postCreateCommand": "bash ./.devcontainer/post-install.sh", | ||
"mounts": [ | ||
// "source=${localEnv:HOME}/.git_stop_words,target=/home/vscode/.git_stop_words,type=bind,consistency=cached", | ||
// "source=${localEnv:HOME}/.gitconfig.local,target=/home/vscode/.gitconfig.local,type=bind,consistency=cached", | ||
// "source=${localEnv:HOME}/tmp,target=/home/vscode/tmp,type=bind" | ||
] | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
} |
Oops, something went wrong.