Devcontainer update

- fix permissions for macOS host
- add kivy dependencies support
- syntax and plugin update
This commit is contained in:
Peter Šurda 2025-02-06 13:07:54 +08:00
parent bb5f96cc38
commit b9d90a689c
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
2 changed files with 37 additions and 27 deletions

View File

@ -1,7 +1,9 @@
{ {
"name": "Codespaces Python3", "name": "Codespaces Python3",
"customizations": {
"vscode": {
"extensions": [ "extensions": [
"cschleiden.vscode-github-actions", "GitHub.vscode-github-actions",
"eamodio.gitlens", "eamodio.gitlens",
"github.vscode-pull-request-github", "github.vscode-pull-request-github",
"ms-azuretools.vscode-docker", "ms-azuretools.vscode-docker",
@ -14,12 +16,6 @@
"vscode-icons-team.vscode-icons", "vscode-icons-team.vscode-icons",
"visualstudioexptteam.vscodeintellicode" "visualstudioexptteam.vscodeintellicode"
], ],
"dockerFile": "Dockerfile",
"postCreateCommand": "pip3 install -r requirements.txt",
"updateContentCommand": "python2.7 setup.py install --user",
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/home/user/.local/bin"
},
"settings": { "settings": {
"flake8.args": ["--config=setup.cfg"], "flake8.args": ["--config=setup.cfg"],
"pylint.args": ["--rcfile=setup.cfg"], "pylint.args": ["--rcfile=setup.cfg"],
@ -33,3 +29,13 @@
} }
} }
} }
},
"remoteUser": "user",
"containerUser": "user",
"dockerFile": "Dockerfile",
"postCreateCommand": ".devcontainer/postCreateCommand.sh",
"updateContentCommand": "python2.7 setup.py install --user",
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/home/user/.local/bin"
}
}

View File

@ -0,0 +1,4 @@
#!/bin/sh
pip3 install -r requirements.txt
pip3 install -r kivy-requirements.txt