Skip to content

Commit

Permalink
VS Code dev container settings
Browse files Browse the repository at this point in the history
[changelog skip]
  • Loading branch information
dahlia authored Jan 27, 2023
1 parent afc9b54 commit 971f828
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu

RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:deadsnakes/ppa && \
rm -rf /var/lib/apt/lists/*

RUN apt-get update && \
apt-get install -y \
pypy3 \
python3.8-full \
python3.9-full \
python3.10-full \
python3.11-full \
tox && \
rm -rf /var/lib/apt/lists/*
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Multiple Python versions",

"build": {
"dockerfile": "Dockerfile"
},

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"lextudio.restructuredtext"
]
}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip install -e .[dev]"

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-python.python",
"lextudio.restructuredtext"
]
}
12 changes: 8 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"restructuredtext.confPath": "${workspaceFolder}/docs",
"restructuredtext.linter.executablePath": "${workspaceFolder}/.tox/docs/bin/rstcheck",
"restructuredtext.sphinxBuildPath": "${workspaceFolder}/.tox/docs/bin/sphinx-build"
}
"files.eol": "\n",
"files.insertFinalNewline": false,
"files.trimFinalNewlines": true,
"esbonio.sphinx.buildDir": "${workspaceFolder}/docs/_build",
"esbonio.sphinx.confDir": "${workspaceFolder}/docs",
"esbonio.sphinx.srcDir": "${workspaceFolder}/docs",
"restructuredtext.linter.rstcheck.executablePath": "${workspaceFolder}/.tox/docs/bin/rstcheck"
}

0 comments on commit 971f828

Please sign in to comment.