33{
44 "name" : " Python 3" ,
55 "build" : {
6- "dockerfile" : " Dockerfile" ,
7- "context" : " .." ,
8- "args" : {
9- // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
10- // Append -bullseye or -buster to pin to an OS version.
11- // Use -bullseye variants on local on arm64/Apple Silicon.
12- "VARIANT" : " 3.10-bullseye" ,
13- // Options
14- "NODE_VERSION" : " lts/*" ,
15- "POETRY_VERSION" : " 1.5.1" ,
16- }
6+ "dockerfile" : " Dockerfile" ,
7+ "context" : " .." ,
8+ "args" : {
9+ // Update 'VARIANT' to pick a Python version
10+ // Append -bullseye or -buster to pin to an OS version.
11+ // Use -bullseye variants on local on arm64/Apple Silicon.
12+ "VARIANT" : " 3.12-bullseye" ,
13+ // Options
14+ "POETRY_VERSION" : " 1.8.2"
15+ }
1716 },
18-
1917 // Configure tool-specific properties.
2018 "customizations" : {
2119 // Configure properties specific to VS Code.
2220 "vscode" : {
23- // Set *default* container specific settings.json values on container create.
24- "settings" : {
25- "python.defaultInterpreterPath" : " /usr/local/bin/python" ,
26- "python.linting.enabled" : true ,
27- "python.linting.pylintEnabled" : true ,
28- "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
29- "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
30- "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
31- "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
32- "python.linting.flake8Path" : " /usr/local/py-utils/bin/flake8" ,
33- "python.linting.mypyPath" : " /usr/local/py-utils/bin/mypy" ,
34- "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
35- "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
36- "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint"
37- },
38-
39- // Add the IDs of extensions you want installed when the container is created.
40- "extensions" : [
41- " ms-python.python" ,
42- " ms-python.vscode-pylance"
21+ // Set *default* container specific settings.json values on container create.
22+ "settings" : {
23+ "python.defaultInterpreterPath" : " ./.venv/bin/python" ,
24+ "[python]" : {
25+ "editor.defaultFormatter" : " charliermarsh.ruff"
26+ }
27+ },
28+ // Add the IDs of extensions you want installed when the container is created.
29+ "extensions" : [
30+ " ms-python.python" ,
31+ " ms-python.vscode-pylance" ,
32+ " charliermarsh.ruff"
4333 ]
4434 }
4535 },
46-
4736 // Use 'forwardPorts' to make a list of ports inside the container available locally.
4837 // "forwardPorts": [],
49-
5038 // Use 'postCreateCommand' to run commands after the container is created.
5139 "postCreateCommand" : " bash ./.devcontainer/post-install.sh" ,
52-
5340 // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
5441 "remoteUser" : " vscode"
55- }
42+ }
0 commit comments