Skip to content

Commit b9d90a6

Browse files
committed
Devcontainer update
- fix permissions for macOS host - add kivy dependencies support - syntax and plugin update
1 parent bb5f96c commit b9d90a6

File tree

2 files changed

+37
-27
lines changed

2 files changed

+37
-27
lines changed

.devcontainer/devcontainer.json

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
11
{
22
"name": "Codespaces Python3",
3-
"extensions": [
4-
"cschleiden.vscode-github-actions",
5-
"eamodio.gitlens",
6-
"github.vscode-pull-request-github",
7-
"ms-azuretools.vscode-docker",
8-
"ms-python.flake8",
9-
"ms-python.pylint",
10-
"ms-python.python",
11-
"ms-vsliveshare.vsliveshare",
12-
"nwgh.bandit",
13-
"the-compiler.python-tox",
14-
"vscode-icons-team.vscode-icons",
15-
"visualstudioexptteam.vscodeintellicode"
16-
],
3+
"customizations": {
4+
"vscode": {
5+
"extensions": [
6+
"GitHub.vscode-github-actions",
7+
"eamodio.gitlens",
8+
"github.vscode-pull-request-github",
9+
"ms-azuretools.vscode-docker",
10+
"ms-python.flake8",
11+
"ms-python.pylint",
12+
"ms-python.python",
13+
"ms-vsliveshare.vsliveshare",
14+
"nwgh.bandit",
15+
"the-compiler.python-tox",
16+
"vscode-icons-team.vscode-icons",
17+
"visualstudioexptteam.vscodeintellicode"
18+
],
19+
"settings": {
20+
"flake8.args": ["--config=setup.cfg"],
21+
"pylint.args": ["--rcfile=setup.cfg"],
22+
"terminal.integrated.shell.linux": "/usr/bin/zsh",
23+
"terminal.integrated.defaultProfile.linux": "zsh",
24+
"terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'",
25+
"terminal.integrated.fontSize": 14,
26+
"files.exclude": {
27+
"**/CODE_OF_CONDUCT.md": true,
28+
"**/LICENSE": true
29+
}
30+
}
31+
}
32+
},
33+
"remoteUser": "user",
34+
"containerUser": "user",
1735
"dockerFile": "Dockerfile",
18-
"postCreateCommand": "pip3 install -r requirements.txt",
36+
"postCreateCommand": ".devcontainer/postCreateCommand.sh",
1937
"updateContentCommand": "python2.7 setup.py install --user",
2038
"remoteEnv": {
2139
"PATH": "${containerEnv:PATH}:/home/user/.local/bin"
22-
},
23-
"settings": {
24-
"flake8.args": ["--config=setup.cfg"],
25-
"pylint.args": ["--rcfile=setup.cfg"],
26-
"terminal.integrated.shell.linux": "/usr/bin/zsh",
27-
"terminal.integrated.defaultProfile.linux": "zsh",
28-
"terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'",
29-
"terminal.integrated.fontSize": 14,
30-
"files.exclude": {
31-
"**/CODE_OF_CONDUCT.md": true,
32-
"**/LICENSE": true
33-
}
3440
}
3541
}

.devcontainer/postCreateCommand.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
pip3 install -r requirements.txt
4+
pip3 install -r kivy-requirements.txt

0 commit comments

Comments
 (0)