Skip to content

Commit b5eeb8c

Browse files
author
Gerit Wagner
committed
setup devcontainer
1 parent c0a64ef commit b5eeb8c

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.devcontainer/.bash_aliases

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
alias pca='pre-commit autoupdate'
2+
alias pcr='pre-commit run -a'
3+
alias ga='git add '
4+
alias gc='git commit -S -m'
5+
alias gs='git status'

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Extend the specified Python image
2+
FROM mcr.microsoft.com/vscode/devcontainers/python:3.12-bullseye
3+
4+
COPY .bash_aliases /home/vscode/.bash_aliases
5+
6+
# Specify the default command, if any, or override with your own command
7+
CMD ["bash"]

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Python 3",
3+
"postCreateCommand": "pip install -e .[dev]",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"streetsidesoftware.code-spell-checker",
8+
"markdown.showPreview",
9+
"mhutchie.git-graph"
10+
],
11+
"settings": {
12+
"markdown.extension.preview.autoShowPreviewToSide": true,
13+
"markdown.extension.print.theme": "dark",
14+
"workbench.colorTheme": "Default Dark+",
15+
"window.autoDetectColorScheme": true
16+
}
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)