-
-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add devcontainer config (#2385)
- Loading branch information
1 parent
fd18f36
commit cf22892
Showing
2 changed files
with
78 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,8 @@ | ||
# [Choice] Python version (use -bookworm or -bullseye variants on local arm64/Apple Silicon): 3, 3.11, 3.10, 3.9, 3.8, 3-bookworm, 3.11-bookworm, 3.10-bookworm, 3.9-bookworm, 3.8-bookworm, 3-bullseye, 3.11-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3-buster, 3.11-buster, 3.10-buster, 3.9-buster, 3.8-buster | ||
ARG VARIANT=3-bookworm | ||
FROM python:${VARIANT} | ||
|
||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get purge -y fish | ||
|
||
RUN python3 -m pip install --upgrade setuptools cython pip poetry |
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,70 @@ | ||
{ | ||
"name": "litestar-org/litestar", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": "." | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "true", | ||
"username": "vscode", | ||
"userUid": "1000", | ||
"userGid": "1000", | ||
"upgradePackages": "true" | ||
}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {}, | ||
"ghcr.io/devcontainers/features/python:1": "none", | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "latest", | ||
"ppa": "false" | ||
} | ||
}, | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["CONTRIBUTING.rst"] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"mhutchie.git-graph", | ||
"eamodio.gitlens", | ||
"github.vscode-github-actions", | ||
"ms-python.black-formatter", | ||
"ms-python.mypy-type-checker", | ||
"charliermarsh.ruff" | ||
], | ||
"settings": { | ||
"python.editor.defaultFormatter": "ms-python.black-formatter", | ||
"python.defaultInterpreterPath": "${workspaceFolder}/.venv", | ||
"python.terminal.activateEnvInCurrentTerminal": true, | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"python.testing.pytestArgs": ["."], | ||
"python.terminal.launchArgs": ["-X", "dev"], | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "bash", | ||
"icon": "terminal-bash" | ||
}, | ||
"zsh": { | ||
"path": "zsh" | ||
}, | ||
"fish": { | ||
"path": "fish" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"forwardPorts": [8000], | ||
"postCreateCommand": [ | ||
"poetry", | ||
"install", | ||
"--extras", | ||
"full", | ||
"--with", | ||
"docs,lint" | ||
], | ||
"remoteUser": "vscode" | ||
} |