Skip to content

Commit 871aea9

Browse files
committed
Devcontainer updates
- remove obsolete intellicode - terminal font change - add PyQt4 stubs for linter/autocomplete
1 parent 3248ecd commit 871aea9

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
"ms-vsliveshare.vsliveshare",
1414
"nwgh.bandit",
1515
"the-compiler.python-tox",
16-
"vscode-icons-team.vscode-icons",
17-
"visualstudioexptteam.vscodeintellicode"
16+
"vscode-icons-team.vscode-icons"
1817
],
1918
"settings": {
2019
"python.defaultInterpreterPath": "/usr/bin/python3",
2120
"flake8.interpreter": ["/usr/bin/python3"],
2221
"flake8.importStrategy": "fromEnvironment",
2322
"flake8.args": ["--config=setup.cfg"],
2423
"pylint.interpreter": ["/usr/bin/python3"],
25-
"pylint.args": ["--rcfile=setup.cfg", "--init-hook", "import sys;sys.path.append('src')"],
24+
"pylint.args": ["--rcfile=setup.cfg", "--init-hook",
25+
"import sys;sys.path.append('src')"],
2626
"terminal.integrated.shell.linux": "/usr/bin/zsh",
2727
"terminal.integrated.defaultProfile.linux": "zsh",
28-
"terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'",
28+
"terminal.integrated.fontFamily": "'CommitMono Nerd Font'",
2929
"terminal.integrated.fontSize": 14,
3030
"files.exclude": {
3131
"**/CODE_OF_CONDUCT.md": true,

.devcontainer/postCreateCommand.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
pip3 install -r requirements.txt
44
pip3 install -r kivy-requirements.txt
55

6+
# PyQt4 stubs, for better linter/autocomplete
7+
git clone https://github.com/TheKewlStore/PyQt4-Stubs.git /tmp/pyqt4-stubs
8+
P2DIR=$(python2 -c "import site; print(site.getusersitepackages())")/
9+
P3DIR=$(python3 -c "import site; print(site.getusersitepackages())")/
10+
cp -r /tmp/pyqt4-stubs/* "${P2DIR}"
11+
cp -r /tmp/pyqt4-stubs/* "${P3DIR}"
12+
613
# Linter tools needed by the VS Code extensions (ms-python.flake8,
714
# ms-python.pylint, nwgh.bandit). The apt-installed system packages
815
# are not visible to the VS Code Python interpreter.
9-
pip3 install flake8 pylint bandit
16+
pip3 install flake8 pylint bandit

0 commit comments

Comments
 (0)