Skip to content

Commit 9e4b117

Browse files
committed
Devcontainer compatibility fixes
- missing Python 2 six - pylint relative imports
1 parent d0bc26e commit 9e4b117

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
1818
python-setuptools \
1919
python2.7 \
2020
python2.7-dev \
21+
python-six \
2122
python3 \
2223
python3-dev \
2324
python3-flake8 \

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"settings": {
2020
"flake8.args": ["--config=setup.cfg"],
21-
"pylint.args": ["--rcfile=setup.cfg"],
21+
"pylint.args": ["--rcfile=setup.cfg", "--init-hook", "import sys;sys.path.append('src')"],
2222
"terminal.integrated.shell.linux": "/usr/bin/zsh",
2323
"terminal.integrated.defaultProfile.linux": "zsh",
2424
"terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'",

0 commit comments

Comments
 (0)